/* ============================================
   John Pumpkin - 全局设计系统
   ============================================ */

/* ---------- CSS 自定义变量（可配置项） ---------- */
:root {
  /* 背景色（各页面统一白色占位，后续可单独覆盖） */
  --bg-color: #ffffff;
  --bg-myself: #ffffff;
  --bg-myrealm: #ffffff;
  --bg-myvoice: #ffffff;
  --bg-mypractice: #ffffff;
  --bg-mylens: #ffffff;

  /* 发光暖光色 */
  --glow-warm: #ffd166;

  /* My Voice 专属配色 */
  --voice-pink: #e0218a;
  --voice-dark: #1a1035;

  /* 文字 - 次要文字字体栈 */
  --font-label: 'Franklin Gothic Demi Cond Bold', 'Oswald', 'Bebas Neue', 'Impact', '思源黑体 Bold', sans-serif;
  /* 文字 - 正文字体栈 */
  --font-body: 'Inter', 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', '微软雅黑', sans-serif;

  /* 内页内容最大宽度 */
  --content-maxw: 1040px;

  /* 动画参数 */
  --anim-dur: 400ms;
  --anim-ease: ease-out;

  /* =====================================
     首页南瓜地位置配置（可微调）
     所有坐标基于容器百分比或视口单位
     ===================================== */
  /* 标题（顶部横栏占用约 58px，整体下移；想手调改这里） */
  --title-x: 47%;      /* 水平位置（容器中心参考） */
  --title-y: 11%;      /* 垂直位置 */
  --title-scale: 0.92; /* 缩放 */

  /* 内页顶部手绘标题 PNG（5 个小标题图片）的统一宽度，位置默认居中 */
  --inner-title-w: clamp(220px, 30vw, 360px);

  /* 南瓜 1 - Myself（中央最大） */
  --myself-x: 50%;
  --myself-y: 63%;
  --myself-scale: 1.12;

  /* 南瓜 2 - My Realm（左上蓝紫） */
  --realm-x: 13%;
  --realm-y: 37%;
  --realm-scale: 1.0;

  /* 南瓜 3 - My Lens（左下葫芦形） */
  --lens-x: 26%;
  --lens-y: 70%;
  --lens-scale: 0.93;


  /* 南瓜 4 - My Voice（右上花朵形） */
  --voice-x: 82%;
  --voice-y: 34%;
  --voice-scale: 1.06;

  /* 南瓜 5 - My Practice（右下双胞胎） */
  --practice-x: 76.5%;
  --practice-y: 76%;
  --practice-scale: 1.2;

  /* ================= My Realm 房间：A-F 可点击元素定位 =================
     x = 中心距画面左边的百分比，y = 中心距画面顶部的百分比，
     w = 元素宽度的百分比（高度按原图比例自动）。
     严格按照「油画改造整图预览.png」摆放，微调直接改这里。 */
  --realm-a-x: 27%;  --realm-a-y: 17%;  --realm-a-w: 35%;   /* A：黄色螺旋 */
  --realm-b-x: 45%;  --realm-b-y: 45%;  --realm-b-w: 15%;   /* B：蝴蝶人物 */
  --realm-c-x: 59%;  --realm-c-y: 54.8%;  --realm-c-w: 26%;   /* C：白框大脸 */
  --realm-d-x: 53%;  --realm-d-y: 14%;  --realm-d-w: 16%;   /* D：紫色兜帽 */
  --realm-e-x: 16.7%;  --realm-e-y: 68.5%;  --realm-e-w: 33.5%;   /* E：紫色星星 */
  --realm-f-x: 80%;  --realm-f-y: 32.6%;  --realm-f-w: 33.5%;   /* F：粉色翼龙 */
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* 手绘标题占位容器（后续替换为 PNG） */
.hand-title {
  display: inline-block;
  background: none;
  /* 如果插入文字，使用和手绘标题接近的粗体 */
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hand-title.placeholder {
  color: #111;
}

/* ---------- 返回首页按钮（左上角 X，参考 左上角返回键.png） ---------- */
.back-home {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 100;
  width: 54px;              /* X 按钮整体大小，想调整就改这里 */
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  transition: transform var(--anim-dur) var(--anim-ease);
}

.back-home:hover {
  transform: scale(1.12);
}

.back-home img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- 内页通用容器 ---------- */
.page-wrap {
  min-height: 100vh;
  background-color: var(--bg-color);
  padding: 80px 24px 120px;
}

.page-inner {
  max-width: var(--content-maxw);
  margin: 0 auto;
}

.page-title {
  margin-bottom: 64px;
  text-align: center;
}

.page-title .hand-title {
  font-size: 48px;
  font-size: clamp(36px, 6vw, 64px);
}

/* 内页顶部手绘标题 PNG（title 文件夹里的 5 个小标题图片）
   宽度统一由 --inner-title-w 控制；想单独改某一页，就在该页 HTML 的
   <style> 里覆盖，例如：.page-title-img { --inner-title-w: 300px; margin-left: 0; } */
.page-title-img {
  display: block;
  margin: 0 auto;       /* 居中；改成 margin: 0; 可左对齐 */
  width: var(--inner-title-w);
  height: auto;
}

/* ---------- 悬浮作品展示（内页通用） ---------- */
.work-scroll {
  position: relative;
}

.work-group {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  position: relative;
}

.work-item {
  position: relative;
  max-width: 680px;
  margin: 0 auto 40px;
  transition: transform var(--anim-dur) var(--anim-ease);
}

.work-item img {
  width: 100%;
  border: none;
}

.work-item.tilt-l { transform: rotate(-2deg); }
.work-item.tilt-r { transform: rotate(1.5deg); }
.work-item.tilt-s { transform: rotate(-0.6deg); }

.work-item:hover {
  transform: rotate(0deg) scale(1.02);
}

.work-label {
  font-family: var(--font-label);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 16px;
  padding: 0 4px;
}

.work-caption {
  font-size: 15px;
  color: #555;
  margin-top: 8px;
  padding: 0 4px;
  max-width: 560px;
}

/* 占位方块（用于尚未提供的作品图） */
.ph-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg,
    #f5f5f5,
    #f5f5f5 12px,
    #ededed 12px,
    #ededed 24px
  );
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-family: var(--font-label);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.ph-img.tall { aspect-ratio: 3 / 4; }
.ph-img.sq   { aspect-ratio: 1 / 1; }
.ph-img.wide { aspect-ratio: 16 / 9; }

/* ============================================
   首页 - 南瓜地
   ============================================ */
.pumpkin-field {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #ffffff;
}

/* ============================================
   首页顶部横栏（仅首页）：白底 + 黑色底线，左让开 logo
   ============================================ */
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 58px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding: 0 28px 0 116px;
  background: #fff;
  border-bottom: 1.5px solid #111;
  white-space: nowrap;
}
.home-nav-link {
  position: relative;
  font-family: 'Franklin Gothic Demi', 'Franklin Gothic Demi Cond', 'Franklin Gothic Medium', Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.04em;
  color: #111;
  text-decoration: none;
  transition: color 300ms ease-out;
}
/* 黄色光晕（径向渐变，不用 blur）：默认隐藏 */
.home-nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 260%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 209, 102, 0.55) 0%,
    rgba(255, 209, 102, 0.18) 40%,
    rgba(255, 209, 102, 0) 72%
  );
  opacity: 0;
  transition: opacity 400ms ease-out;
  z-index: -1;
  pointer-events: none;
}
/* 直接 hover 链接：变橙色 */
.home-nav-link:hover { color: #f5820a; }

/* ---- hover 南瓜时，横栏对应项发光 + 变橙色（联动类由 main.js 加在 body 上） ---- */
body.nav-glow-myself .home-nav-link[data-pk="myself"],
body.nav-glow-realm   .home-nav-link[data-pk="realm"],
body.nav-glow-lens    .home-nav-link[data-pk="lens"],
body.nav-glow-voice   .home-nav-link[data-pk="voice"],
body.nav-glow-practice .home-nav-link[data-pk="practice"] {
  color: #f5820a;
}
body.nav-glow-myself .home-nav-link[data-pk="myself"]::before,
body.nav-glow-realm   .home-nav-link[data-pk="realm"]::before,
body.nav-glow-lens    .home-nav-link[data-pk="lens"]::before,
body.nav-glow-voice   .home-nav-link[data-pk="voice"]::before,
body.nav-glow-practice .home-nav-link[data-pk="practice"]::before {
  opacity: 1;
}
/* logo 压在横栏之上 */
.home-page .field-logo { z-index: 210; }

/* 首页全局平滑滚动（点击标题/锚点时） */
html { scroll-behavior: smooth; }

/* 喷壶光标：仅首页南瓜地第一屏内生效（热点在壶嘴处 10,20） */
.home-page .pumpkin-field,
.home-page .pumpkin-field * {
  cursor: url('../spout-cursor.webp') 10 20, auto;
}

/* 鼠标"浇水"黑色手绘细线条拖尾（仅首页第一屏） */
.water-line {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: waterFade var(--dur, 800ms) ease-out forwards;
}
.water-line svg { display: block; }
@keyframes waterFade {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(0); }
  100% { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(18px); }
}

/* 左上角 logo：滚动时固定在屏幕左上角，原地旋转（角度由 JS 设置） */
.field-logo {
  position: fixed;
  top: 6px;
  left: 28px;
  z-index: 60;
  width: 82px;
  height: auto;
  pointer-events: none;
  will-change: transform;
}

/* 右侧竖排 WELCOME 无限滚动（仅第一屏） */
.welcome-rail {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 64px;
  z-index: 25;
  overflow: hidden;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 450ms ease-out;
}
.welcome-rail.off { opacity: 0; }
.welcome-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: welcomeScroll 22s linear infinite;
}
.welcome-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  padding: 23px 0;
}
.welcome-col span {
  font-family: 'Franklin Gothic Medium Cond', 'Franklin Gothic Medium', Oswald, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #2a1a5e;
  writing-mode: vertical-rl;
  transform: rotate(180deg);   /* 逆时针 90°：文字从下往上读 */
  white-space: nowrap;
}
@keyframes welcomeScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* 两行悬浮信息文字：随机游走，不可点击（pointer-events:none） */
.field-caption {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  pointer-events: none;
  font-family: 'Franklin Gothic Medium Cond', 'Franklin Gothic Medium', 'Franklin Gothic', Oswald, sans-serif;
  font-weight: 400; /* Franklin Gothic Medium 本身字重已够，不加粗 */
  font-size: clamp(15px, 1.55vw, 22px);
  color: #111;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* 两行文字各自的游走路径（动画时长/路径可自行微调） */
.drift-a { animation: driftA 37s ease-in-out infinite alternate; }
.drift-b { animation: driftB 47s ease-in-out infinite alternate; }
@keyframes driftA {
  0%   { transform: translate(34vw, 17vh); }
  20%  { transform: translate(52vw, 38vh); }
  40%  { transform: translate(28vw, 60vh); }
  60%  { transform: translate(58vw, 76vh); }
  80%  { transform: translate(38vw, 48vh); }
  100% { transform: translate(62vw, 24vh); }
}
@keyframes driftB {
  0%   { transform: translate(38vw, 72vh); }
  25%  { transform: translate(20vw, 40vh); }
  50%  { transform: translate(50vw, 26vh); }
  75%  { transform: translate(66vw, 55vh); }
  100% { transform: translate(30vw, 82vh); }
}
@media (prefers-reduced-motion: reduce) {
  .drift-a, .drift-b { animation: none; }
  .drift-a { transform: translate(36vw, 18vh); }
  .drift-b { transform: translate(38vw, 72vh); }
}

/* 标题 */
.field-title {
  position: absolute;
  display: block;
  text-decoration: none;
  left: var(--title-x);
  top: var(--title-y);
  transform: translate(-50%, 0) scale(var(--title-scale));
  transform-origin: center top;
  z-index: 8;
  max-width: 45vw;
  cursor: pointer;
}

.field-title img {
  width: 100%;
  height: auto;
}

/* 南瓜容器通用样式 */
.pumpkin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pumpkin-img-wrap {
  position: relative;
  display: block;
  transform-origin: center center;
  transition: transform var(--anim-dur) var(--anim-ease);
}

.pumpkin-img-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

/* 光晕（用径向渐变，不用 blur） */
.pumpkin-glow {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 209, 102, 0.55) 0%,
    rgba(255, 209, 102, 0.18) 35%,
    rgba(255, 209, 102, 0) 70%
  );
  opacity: 0;
  transition: opacity var(--anim-dur) var(--anim-ease);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

/* Hover 状态 */
.pumpkin:hover .pumpkin-img-wrap {
  transform: scale(1.04);
}
.pumpkin:hover .pumpkin-glow {
  opacity: 1;
}

/* 点击过渡动画 */
.pumpkin.cracking .pumpkin-img-wrap {
  animation: crack-glow 450ms ease-out forwards;
}
.pumpkin.cracking .pumpkin-glow {
  animation: glow-burst 450ms ease-out forwards;
}
@keyframes crack-glow {
  0%   { transform: scale(1.04); filter: brightness(1); }
  40%  { transform: scale(1.12); filter: brightness(1.35); }
  100% { transform: scale(0.96); filter: brightness(1.6) opacity(0.25); }
}
@keyframes glow-burst {
  0%   { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  60%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.6); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.2); }
}

/* 各南瓜具体位置与尺寸 */
.pk-myself   { left: var(--myself-x);   top: var(--myself-y);   }
.pk-myself   .pumpkin-img-wrap { width: clamp(200px, 26vw, 420px); transform: scale(var(--myself-scale)); }

.pk-realm    { left: var(--realm-x);    top: var(--realm-y);    }
.pk-realm    .pumpkin-img-wrap { width: clamp(140px, 18vw, 300px); transform: scale(var(--realm-scale)); }

.pk-lens     { left: var(--lens-x);     top: var(--lens-y);     }
.pk-lens     .pumpkin-img-wrap { width: clamp(140px, 18vw, 300px); transform: scale(var(--lens-scale)); }

.pk-voice    { left: var(--voice-x);    top: var(--voice-y);    }
.pk-voice    .pumpkin-img-wrap { width: clamp(140px, 18vw, 300px); transform: scale(var(--voice-scale)); }

.pk-practice { left: var(--practice-x); top: var(--practice-y); }
.pk-practice .pumpkin-img-wrap { width: clamp(160px, 20vw, 330px); transform: scale(var(--practice-scale)); }

/* ============================================
   My Self 页面 — 简约介绍页（左文字 + 右照片）
   参考排版：dahliayizhu.com/info；文字直接改 myself.html 里的 .self-text
   ============================================ */
.self-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  color: #111;
}

/* ---- 手绘标题：固定右上角（X 在左上角，互不遮挡） ---- */
.self-corner-title {
  position: fixed;
  top: 30px;
  right: clamp(20px, 3.5vw, 48px);
  width: clamp(130px, 13vw, 210px);
  z-index: 60;
  pointer-events: none;
}

/* ---- 双栏：左侧文字（自己填写）+ 右侧照片 ---- */
.self-info {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: 110px clamp(24px, 5vw, 72px) 80px;
  box-sizing: border-box;
}
.self-text {
  max-width: 540px;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.85;
}
.self-text h3 {
  font-size: clamp(15px, 1.2vw, 17.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 34px 0 10px;
}
.self-text h3:first-child { margin-top: 0; }
.self-text p { margin: 0 0 14px; }
.self-lede {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.6;
  margin: 0 0 26px;
}

/* ---- 右侧照片：比参考站的照片略大一点 ---- */
.self-photo { margin: 0; }
.self-photo img {
  display: block;
  width: clamp(400px, 40vw, 600px);
  height: auto;
}

/* ---- 漂浮小照片 photo2.png：像首页文字一样随机游走（大小改 width，路径改 selfFloat 关键帧） ---- */
.self-float {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;                 /* 压在文字和 photo.png 上方，低于右上角标题(60)和 X(100) */
  width: clamp(96px, 10.5vw, 160px);
  height: auto;
  pointer-events: none;        /* 纯装饰，不挡鼠标 */
  animation: selfFloat 10s ease-in-out infinite alternate;
}
@keyframes selfFloat {
  0%   { transform: translate(13vw, 34vh); }   /* 文字区上部 */
  18%  { transform: translate(34vw, 22vh); }
  36%  { transform: translate(58vw, 30vh); }   /* 照片区 */
  54%  { transform: translate(44vw, 58vh); }
  72%  { transform: translate(20vw, 66vh); }   /* 文字区下部 */
  100% { transform: translate(62vw, 44vh); }   /* 照片区偏下 */
}
@media (prefers-reduced-motion: reduce) {
  .self-float { animation: none; transform: translate(40vw, 40vh); }
}

@media (max-width: 900px) {
  .self-info { grid-template-columns: 1fr; padding-top: 120px; }
  .self-photo img { width: min(100%, 480px); margin: 0 auto; }
  .self-float { width: 84px; }
}

/* ============================================
   My Realm 页面 - 超现实房间画作（顶部标题栏 + 油画 + A-F）
   A-F 的位置/大小在 :root 顶部的 --realm-a-x/y/w 等变量调整
   ============================================ */
.realm-room-page {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;            /* 页面不允许上下滚动 */
  /* 背景底色：流动渐变的兜底底色（渐变动画在下面的 ::before） */
  background: #fdf3fa;
  display: flex;
  flex-direction: row;
  --side-w: clamp(250px, 30vw, 420px);   /* 左侧栏宽度 */
}

/* ---- My Realm 多色柔和渐变流动背景（纯 CSS，无 blur） ---- */
.realm-room-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* 柔黄 #fff4b8 */  radial-gradient(40% 44% at 20% 22%, rgba(255,244,184,0.95), rgba(255,244,184,0) 90%),
    /* 粉紫 #ffb6de */  radial-gradient(44% 46% at 82% 16%, rgba(255,182,222,0.92), rgba(255,182,222,0) 80%),
    /* 洋红 #ff6fd8 */  radial-gradient(42% 50% at 80% 82%, rgba(255,111,216,0.70), rgba(255,111,216,0) 72%),
    /* 天蓝 #b6f5ff */  radial-gradient(46% 44% at 18% 80%, rgba(182,245,255,0.92), rgba(182,245,255,0) 70%),
    /* 薄荷绿 #c9fdd7 */ radial-gradient(40% 42% at 50% 52%, rgba(201,253,215,0.85), rgba(201,253,215,0) 72%);
  background-size: 320% 320%;
  background-repeat: no-repeat;
  animation: realmFlow 3s ease-in-out infinite alternate;
  will-change: background-position;
}
@keyframes realmFlow {
  0%   { background-position: 0% 0%,     100% 0%,   100% 100%, 0% 100%,   50% 50%; }
  50%  { background-position: 32% 62%,   68% 38%,   38% 18%,   62% 82%,   52% 46%; }
  100% { background-position: 100% 100%, 0% 100%,   0% 0%,     100% 0%,   50% 50%; }
}

/* ---- 闪烁白点层（glitter），在流动背景之上、内容之下 ---- */
.realm-glitter {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.realm-glitter i {
  position: absolute;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 7px 1.5px rgba(255,255,255,0.95);
  opacity: 0.25;
  animation: realmTwinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  will-change: opacity, transform;
}
@keyframes realmTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.65); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

/* 确保页面内容在流动背景和闪粉层之上（不影响 X 按钮的 fixed 定位） */
.realm-side, .realm-stage {
  position: relative;
  z-index: 2;
}

/* ---- 随机图片闪现层（在背景之上、标题/油画之下） ---- */
.realm-deco {
  position: fixed;
  inset: 0;
  z-index: 1;                /* 和 glitter 同层，在背景之上、内容之下 */
  pointer-events: none;
  overflow: hidden;
}
.realm-deco .deco-item {
  position: absolute;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
  will-change: opacity, transform;
}
.realm-deco .deco-item.show {
  opacity: 0.88;
  transform: scale(1);
}

/* 自定义光标：幽灵南瓜（热点 = 图片左上角 0,0），仅 My Realm 页面 */
.realm-room-page,
.realm-room-page * {
  cursor: url('../My realm/Mouse-cursor.webp') 0 0, auto;
}

/* 鼠标轨迹星光粒子 */
.realm-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: currentColor;
  box-shadow: 0 0 8px 2px currentColor;
  transform: translate(-50%, -50%);
  animation: sparkleFade var(--dur, 800ms) ease-out forwards;
}
@keyframes sparkleFade {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
}

/* ---------- 左侧栏：手绘标题 + 介绍文字，整体垂直居中 ---------- */
.realm-side {
  width: var(--side-w);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* 两者一起垂直居中 */
  align-items: flex-start;
  gap: 30px;                   /* 标题和文字的间距 */
  padding: 0 12px 0 clamp(92px, 9vw, 140px);  /* 左边给 X 按钮留位 */
  box-sizing: border-box;
}
.realm-title {
  width: clamp(400px, 10vw, 600px);   /* 手绘标题大小 */
  height: auto;
  --title-y: -85px;                      /* ← 标题垂直偏移：正数下移，负数上移（如 -80px 上移） */
  transform: translateY(var(--title-y));
}
.realm-note {
  margin: 0;
  font-family: 'Franklin Gothic Book', 'Franklin Gothic', 'Franklin Gothic Medium', Inter, sans-serif;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.55;
  color: #222;
}

/* ---------- 右侧舞台：油画垂直居中（画横向中线 = 屏幕横向中线） ---------- */
.realm-stage {
  flex: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;         /* 垂直居中 → 上移 */
  justify-content: center;     /* 水平居中 */
  padding: 30px 34px 30px 4px;
  box-sizing: border-box;
}

/* ---------- 油画画布：自动缩放到正好放满舞台可用区域，不碰边不重叠 ---------- */
.realm-canvas {
  position: relative;
  aspect-ratio: 6371 / 5030;
  width: min(
    calc(100vw - var(--side-w) - 46px),      /* 舞台可用宽度 */
    calc((100dvh - 60px) * 6371 / 5030)      /* 按"屏幕高-上下留白60px"算出的宽 */
  );
}
.realm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

/* A-F 可点击元素：以"画面可视区域"为坐标，用百分比定位中心 */
.realm-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: block;
  cursor: pointer;
  transition: filter 320ms ease-out;
  filter: brightness(1);
}
.realm-hotspot img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
/* 悬停：变亮（不缩放，和其他部分交互一致） */
.realm-hotspot:hover {
  filter: brightness(1.3);
}

/* A-F 各自的位置与宽度（百分比，相对画面区域）
   x = 中心距左，y = 中心距顶，w = 元素宽度（高度按原图比例） */
.hs-a { left: var(--realm-a-x); top: var(--realm-a-y); width: var(--realm-a-w); }
.hs-b { left: var(--realm-b-x); top: var(--realm-b-y); width: var(--realm-b-w); }
.hs-c { left: var(--realm-c-x); top: var(--realm-c-y); width: var(--realm-c-w); }
.hs-d { left: var(--realm-d-x); top: var(--realm-d-y); width: var(--realm-d-w); }
.hs-e { left: var(--realm-e-x); top: var(--realm-e-y); width: var(--realm-e-w); }
.hs-f { left: var(--realm-f-x); top: var(--realm-f-y); width: var(--realm-f-w); }

@media (max-width: 760px) {
  .realm-room-page { flex-direction: column; height: auto; min-height: 100dvh; overflow: auto; --side-w: 100%; }
  .realm-side { height: auto; padding: 84px 20px 6px; gap: 14px; justify-content: flex-start; }
  .realm-title { width: 150px; }
  .realm-stage { padding: 10px 12px 24px; }
  .realm-canvas { width: 94vw; }
}

/* ---------- My Realm 作品详情页（白底） ---------- */
.realm-detail-page {
  margin: 0;
  background: #fff;
  font-family: 'Franklin Gothic Book', 'Franklin Gothic', 'Franklin Gothic Medium', Inter, sans-serif;
  color: #111;
}
.realm-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 32px 80px;
}
.realm-meta {
  margin-bottom: 48px;
}
.realm-meta h1 {
  font-family: 'Franklin Gothic Medium', 'Franklin Gothic', Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.realm-meta p {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  max-width: 720px;
  margin: 0;
}
/* 作品图列表：垂直排列，中间留白 */
.realm-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.realm-gallery img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}

/* ============================================
   My Voice 页面 - 3D Coverflow 轮播
   配色：粉底 #e0218a / 黑字 #111111
   ============================================ */
.voice-page {
  margin: 0;
  background: #f0299a;       /* 亮芭比粉 */
  color: #111111;
  position: relative;
  font-family: 'EB Garamond', Georgia, serif;
}

/* 纯粉色背景，无波点（如需恢复波点，把下面注释还原即可） */

/* 右上角 My Voice 手绘图标（透明底，与左上角 X 互不遮挡） */
.voice-corner-title {
  position: fixed;
  top: 22px;
  right: clamp(20px, 3.5vw, 48px);
  width: clamp(140px, 14vw, 230px);
  height: auto;
  z-index: 60;
  pointer-events: none;
}

/* 作品纵向列表容器 */
.voice-list {
  position: relative;
  z-index: 1;
  padding: 140px clamp(24px, 6vw, 80px) 120px;
  box-sizing: border-box;
}

/* 单个作品：左图右文，两栏 */
.voice-work {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(80px, 12vh, 160px);
}
/* 最后一件作品不需要下间距 */
.voice-work:last-child { margin-bottom: 0; }

/* 左侧图片：按顺序竖排，保留原始比例，宽度填满左栏 */
.voice-work-imgs {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
}
.voice-work-imgs img {
  width: 100%;
  height: auto;
  display: block;
}
/* 无图片时的占位块 */
.voice-work-imgs .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,0.18);
}

/* 右侧文字：sticky 固定在视口，随作品图片滚动而保持可见 */
.voice-work-text {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  padding-top: 40px;
}
.voice-work-text h3 {
  margin: 0 0 18px;
  font-family: 'Franklin Gothic Demi', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
  color: #111;
}
.voice-work-text p {
  margin: 0;
  font-family: 'Franklin Gothic Book', 'Franklin Gothic', 'Franklin Gothic Medium', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
  color: #111;
  white-space: pre-line;   /* 保留 \n 换行 */
}

/* 图片网格组：两列 flex，左右列各自独立排列，
   上下间距统一（.voice-work-col 的 gap），底部不对齐也无妨。
   每张图保持原始比例（不裁剪不拉伸）。 */
.voice-work-grid {
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
}
.voice-work-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 24px);
}
.voice-work-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* 移动端：单栏，文字不再 sticky */
@media (max-width: 820px) {
  .voice-list { padding: 120px 20px 80px; }
  .voice-work {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 72px;
  }
  .voice-work-text {
    position: static;
    transform: none;
    padding-top: 0;
  }
  .voice-corner-title { width: clamp(100px, 28vw, 150px); }
}

/* ============================================
   My Voice 作品分页（voice-detail.html）
   参考 dahliayizhu.com/installation：左上图标 + 全宽大图 + 细节小图 + description
   图片/文字配置：js/voice-config.js
   ============================================ */
.voice-detail-page {
  margin: 0;
  background: #fff;
  color: #111111;
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
}

/* 左上角 X 用全局 .back-home；手绘标题固定右上角（透明底，X 在左上角，互不遮挡） */
.vd-corner-title {
  position: fixed;
  top: 22px;
  right: clamp(20px, 3.5vw, 48px);
  width: clamp(130px, 13vw, 210px);
  z-index: 60;
  pointer-events: none;
}

/* 顶部全宽大图：铺满页面整宽 */
.vd-hero {
  margin: 0;
  width: 100%;
}
.vd-hero img {
  display: block;
  width: 100vw;
  height: clamp(52vh, 72vh, 82vh);
  object-fit: cover;
}
/* 大图占位（图片到位前） */
.vd-hero-ph {
  width: 100vw;
  height: clamp(52vh, 72vh, 82vh);
  background: linear-gradient(135deg, #2a2a2a, #5a4a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 0.04em;
}

/* 大图下方：细节小图横排（间距与 My Lens / My Practice 一致 22px） */
.vd-details {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) clamp(22px, 4vw, 48px) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.vd-detail {
  margin: 0;
  cursor: zoom-in;
}
.vd-detail img {
  display: block;
  width: 100%;
  height: auto;
}
/* 细节图占位 */
.vd-detail-ph {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a2a2a, #5a4a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* 底部 description */
.vd-desc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) 24px clamp(56px, 8vw, 100px);
}
.vd-desc h2 {
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  margin: 0 0 4px;
}
.vd-meta {
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 16px);
  opacity: 0.82;
  margin: 0 0 22px;
}
#vdDesc p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
  margin: 0 0 14px;
}

@media (max-width: 720px) {
  .vc-item { width: 180px; height: 250px; margin-left: -90px; margin-top: -125px; }
  .vc-hint { font-size: 12px; }
  .vd-corner-title { width: 96px; top: 16px; }
  .vd-hero img, .vd-hero-ph { height: 48vh; }
  .vd-details { grid-template-columns: 1fr; }
}

/* ============================================
   首页 - 品牌概念弹窗（点击 John Pumpkin 大标题弹出）
   想改弹窗内容文字 → index.html 里 <div class="brand-text">
   想改形状/颜色/边框 → 下面的 .brand-dialog
   ============================================ */
.brand-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);  /* 背景变暗：55% 黑遮罩，透明度可调 */
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: maskFade 380ms ease-out;
}
.brand-mask.show { display: flex; }
@keyframes maskFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.brand-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 82vh;
  overflow: auto;
  /* 按预览图：白底 + 黑色粗边框 + 大圆角 */
  background: #ffffff;
  border: 3.5px solid #111111;
  border-radius: 36px;
  padding: 48px 64px;
  box-sizing: border-box;
  /* 生动动效：轻微上弹 + 从小放大 + 末端回弹感 */
  transform-origin: top center;
  animation: brandPop 560ms cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
  /* 颜色/边框/圆角 后续可替换，在此处改即可 */
}
@keyframes brandPop {
  0%   { transform: translateY(-18px) scale(0.78) rotate(-2deg); opacity: 0; }
  60%  { transform: translateY(4px)   scale(1.04) rotate(0.6deg); opacity: 1; }
  80%  { transform: translateY(-1px)  scale(0.985) rotate(-0.2deg); }
  100% { transform: translateY(0)      scale(1) rotate(0); }
}
.brand-dialog::after {
  /* 手绘"贴纸阴影"氛围（很淡，不抢画面） */
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 32px;
  box-shadow: 8px 10px 0 rgba(17,17,17,0.07);
  z-index: -1;
  pointer-events: none;
}

.brand-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #111;
  background: #fff;
  color: #111;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 320ms ease, background 260ms ease, color 260ms ease;
  z-index: 2;
}
.brand-close:hover {
  transform: rotate(90deg);
  background: #111;
  color: #fff;
}

.brand-text {
  font-family: var(--font-body);
  color: #111;
  line-height: 1.8;
  font-size: 16px;
}
.brand-text h2 {
  font-family: var(--font-label);
  font-size: 30px;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  font-weight: 700;
}
.brand-text p { margin: 0 0 16px; }

/* 标题图片：鼠标悬停轻微放大提示可点击 */
.field-title {
  cursor: pointer;
  transition: transform 350ms ease;
}
.field-title:hover {
  transform: translate(-50%, 0) scale(calc(var(--title-scale) * 1.03));
}

/* ============================================
   首页第二屏：品牌理念（白底，居中，文字直接在 index.html 改）
   ============================================ */
.brand-section {
  background: #ffffff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 8vw;
}
.brand-inner {
  max-width: 820px;
}
.brand-heading-img {
  width: clamp(280px, 38vw, 460px);
  height: auto;
  margin: 0 0 36px;
}
.brand-inner p {
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.8;
  color: #333;
  margin: 0 0 22px;
}
/* ---- 逐步揭示文字 ---- */
.brand-stage { display: block; }
.brand-stage.hidden { display: none; }
.blink-word {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  animation: blinkWord 1.2s ease-in-out infinite alternate;
}
.blink-word:hover {
  text-decoration: underline;
}
@keyframes blinkWord {
  0%   { opacity: 0.35; }
  100% { opacity: 1; }
}
.brand-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(15px, 1.4vw, 19px);
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 300ms ease-out;
}
.brand-cta:hover {
  opacity: 0.7;
}

/* ============================================
   首页底部：草地手绘 + 邮箱在草地上方横向往返滑动
   --mail-y：邮箱的垂直位置（百分比，越大越靠下），想微调改这里
   ============================================ */
.home-footer {
  --mail-y: 10%;
  position: relative;
  width: 100%;
  background: #fff;
  line-height: 0;
}
.footer-art {
  width: 100%;
  height: auto;
  display: block;
}
.footer-mail {
  position: absolute;
  top: var(--mail-y);
  left: 0;
  z-index: 2;
  white-space: nowrap;
  font-family: 'Franklin Gothic Book', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 22px);
  letter-spacing: 0.02em;
  color: #111;
  text-decoration: none;
  animation: footerMailSlide 20s ease-in-out infinite alternate;
}
.footer-mail:hover { text-decoration: underline; }
@keyframes footerMailSlide {
  from { left: 0;    transform: translate(0, -50%); }
  to   { left: 100%; transform: translate(-100%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-mail {
    animation: none;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 720px) {
  .brand-dialog { padding: 36px 24px; border-radius: 24px; }
  .brand-text h2 { font-size: 22px; }
}

/* ============================================
   My Practice — Cargo Basic Grid 风格
   左固定栏（手绘标题 + 项目列表 + Information）
   右侧两列整齐图片网格；点图进入项目详情页
   字体：等宽打字机体、常规字重（不加粗）
   ============================================ */
.practice-page {
  --practice-side-w: 300px;     /* 左栏宽度 */
  --practice-title-w: 220px;    /* 左上角手绘标题图片宽度 */
  --practice-font: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-family: var(--practice-font);
  font-weight: 400;
  color: #111;
  background: #fff;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--practice-side-w) 1fr;
  gap: 44px;
  padding: 28px 32px 60px;
}

/* My Lens 网格页：排版与 My Practice 完全一致，字体同样用衬线体 */
body.lens-page .practice-page {
  --practice-font: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
}

/* ---------- 左栏 ---------- */
.practice-side {
  position: sticky;
  top: 28px;
  align-self: start;
  font-size: 13px;
  line-height: 1.6;
}
.practice-title-img {
  display: block;
  width: var(--practice-title-w);
  height: auto;
  margin-bottom: 18px;
}
.side-sub {
  margin: 0 0 28px;
  font-size: 13px;
}
.side-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  font-style: italic;
}
.practice-nav {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.practice-nav a {
  display: block;
  color: #111;
  text-decoration: none;
  padding: 1px 0;
}
.practice-nav a:hover,
.practice-nav a.active { text-decoration: underline; }
.practice-info { margin: 0 0 28px; }
.practice-info p { margin: 0; }
.practice-info a { color: #111; text-decoration: none; }
.practice-info a:hover { text-decoration: underline; }
.side-back { margin: 0 0 40px; }
.side-back a { color: #111; text-decoration: none; }
.side-back a:hover { text-decoration: underline; }
.side-footer {
  position: fixed;
  left: 32px;
  bottom: 20px;
  font-size: 12px;
}

/* ---------- 右侧：两列图片网格 ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-content: start;
}
.practice-cell {
  display: block;
  position: relative;
  text-decoration: none;
}
.practice-cell .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background var(--anim-dur) var(--anim-ease);
}
.practice-cell:hover .ph { background: #dcdcdc; }
/* 正式图片放进来后用 <img> 替换 .ph 即可，自动对齐网格 */
.practice-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 项目详情页 ---------- */
.practice-detail-media {
  margin-bottom: 30px;
}
.practice-detail-media .ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 12px;
}
.practice-detail-text {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 44px;
  font-size: 13px;
  line-height: 1.7;
}
.practice-detail-text h4 {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 14px;
}
.practice-detail-text .meta-lines p { margin: 0 0 2px; }
.practice-detail-text .body-col p { margin: 0 0 14px; }
/* My Lens 描述区中文小标题 */
.lens-cn-title {
  margin: -6px 0 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #111;
}
.practice-detail-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  font-size: 12px;
}
.practice-detail-footer a { color: #111; }

/* Practice 页移动端：左栏移到顶部，网格变单列 */
@media (max-width: 900px) {
  .practice-page {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px 48px;
  }
  .practice-side { position: static; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-detail-text { grid-template-columns: 1fr; gap: 28px; }
  .side-footer { position: static; margin-top: 40px; }
  .practice-title-img { width: 180px; }
}

/* ============================================
   My Lens 页面
   ============================================ */
/* 第一步：视频整屏页 */
.lens-cover {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-mylens);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.lens-video-wrap {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--anim-dur) var(--anim-ease),
              box-shadow var(--anim-dur) var(--anim-ease);
}
.lens-video-wrap:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 6px rgba(255,209,102,0.3);
}
.lens-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    135deg,
    #222,
    #222 24px,
    #2a2a2a 24px,
    #2a2a2a 48px
  );
  color: #fff;
  font-family: var(--font-label);
  font-size: 22px;
  letter-spacing: 0.08em;
  flex-direction: column;
  gap: 16px;
}
.lens-video-placeholder .play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--glow-warm);
  display: grid;
  place-items: center;
  color: #111;
  font-size: 32px;
  transition: transform var(--anim-dur) var(--anim-ease);
}
.lens-video-wrap:hover .play-icon {
  transform: scale(1.12);
}
.lens-video-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.06em;
  opacity: 0.85;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0,0,0,0.45);
}

/* ============================================
   My Lens 相册页（分栏预览页 + 分栏内页）
   ============================================ */
/* 左上角留给 X 返回键，标题下移 */
body.lens-page .practice-title-img { margin-top: 64px; }

/* ---------- 预览页：两列首图 ----------
   左列 2 张竖图（宽度较窄），右列 3 张横图/方图（宽度较宽），
   按各首图真实宽高比计算列宽（约 0.78 : 1），使两列总长度接近 */
.lens-covers {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 22px;
  align-items: start;
}
.lens-col {
  display: grid;
  gap: 22px;
  align-content: start;
}
.lens-col a {
  display: block;
}
.lens-col img {
  width: 100%;
  height: auto;
  display: block;
  background: #ececec;
  transition: filter var(--anim-dur) var(--anim-ease);
}
.lens-col a:hover img { filter: brightness(1.06); }

/* ---------- 内页：左上角返回箭头（与 X 同风格：黑色笔画、无圆角） ----------
   箭头放在照片区（右栏）左上角，而非整个页面左上角 */
.lens-back-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}
body.lens-detail-page main { position: relative; }
body.lens-detail-page .lens-back-arrow {
  position: absolute;
  top: 0;
  left: 0;
}
/* 照片网格顶部留出箭头的高度，避免盖住图片 */
body.lens-detail-page .lens-detail-grid { padding-top: 70px; }

/* ---------- 内页：图片保留原始比例的两列排布 ----------
   竖图/横图/方图一律不裁切；普通图片按"短列优先"排进两列，
   间距与 My Practice 一致；wide 通栏图独占整行 */
.lens-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 72px;
}
.lens-grid-col {
  display: grid;
  gap: 22px;
  align-content: start;
}
.lens-grid-wide { grid-column: 1 / -1; }
.lens-detail-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #ececec;
}

/* Lens 页移动端：两列首图与内页网格变单列 */
@media (max-width: 900px) {
  .lens-covers { grid-template-columns: 1fr; }
  .lens-detail-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
  body.lens-page .practice-title-img { margin-top: 56px; }
}

/* 摄影加分项：开门效果 */
.lens-work {
  perspective: 1400px;
}
.lens-work img,
.lens-work .ph-img {
  transform-origin: left center;
  transition: transform 500ms ease, box-shadow 500ms ease;
  box-shadow: 2px 4px 18px rgba(0,0,0,0.08);
}
.lens-work:hover img,
.lens-work:hover .ph-img {
  transform: rotateY(-18deg);
  box-shadow: 20px 10px 40px rgba(0,0,0,0.16);
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media (max-width: 900px) {
  /* 顶部横栏：缩小、可横向滑动 */
  .home-nav {
    height: 48px;
    gap: 18px;
    padding: 0 16px 0 72px;
    overflow-x: auto;
  }
  .home-nav-link { font-size: 13px; }

  /* 首页南瓜地改为纵向堆叠 + 可滚动/滑动（顶部留出横栏高度） */
  .pumpkin-field {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 96px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .field-title {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 80vw;
    margin: 0 auto 32px;
  }

  /* 藤蔓在移动端隐藏（保持界面整洁） */
  .field-caption { font-size: 13px; }
  .drift-a { animation: none; transform: translate(30vw, 15vh); }
  .drift-b { animation: none; transform: translate(32vw, 75vh); }

  /* 移动端隐藏右侧 WELCOME 滚动，logo 缩小 */
  .welcome-rail { display: none; }
  .field-logo { width: 52px; top: 16px; left: 16px; }

  .pumpkin {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 8px 0;
    width: 100%;
    max-width: 320px;
  }

  .pumpkin .pumpkin-img-wrap {
    width: 100% !important;
    transform: scale(1) !important;
  }

  .pk-myself   { order: 1; }
  .pk-realm    { order: 2; }
  .pk-voice    { order: 3; }
  .pk-lens     { order: 4; }
  .pk-practice { order: 5; }

  .back-home {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
  }

  /* My Self 移动端：右上角标题缩小 */
  .self-corner-title { width: 96px; top: 16px; }
}

@media (max-width: 600px) {
  .page-wrap { padding: 72px 16px 80px; }
  .modal { padding: 24px 18px; }
  .work-item { margin-bottom: 28px; }
}

/* ============================================
   My Practice 页面 - 漂浮 logo（装饰性，覆盖整页）
   改大小：.practice-float-logo 的 width
   改路径：@keyframes practiceFloat 里每个 translate
   ============================================ */
.practice-float-logo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: clamp(90px, 8vw, 150px);
  height: auto;
  pointer-events: none;
  opacity: 0.85;
  animation: practiceFloat 12s ease-in-out infinite alternate;
}
@keyframes practiceFloat {
  0%   { transform: translate(8vw, 22vh); }
  15%  { transform: translate(55vw, 10vh); }
  30%  { transform: translate(72vw, 48vh); }
  45%  { transform: translate(30vw, 70vh); }
  60%  { transform: translate(82vw, 82vh); }
  75%  { transform: translate(18vw, 55vh); }
  100% { transform: translate(48vw, 90vh); }
}
@media (prefers-reduced-motion: reduce) {
  .practice-float-logo { animation: none; transform: translate(40vw, 40vh); }
}
@media (max-width: 760px) {
  .practice-float-logo { width: 72px; }
}

/* ============================================
   My Practice 页面 — 散落拼贴 + 单独栏目
   配置文件: js/practice-config.js
   ============================================ */
.practice-board-page {
  margin: 0;
  background: #fff;
  font-family: 'Franklin Gothic Book', 'Franklin Gothic', 'Franklin Gothic Medium', Inter, sans-serif;
}

/* ---------- 顶部横栏 ---------- */
.practice-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  /* 左内边距避开固定定位的 X 返回键（24px + 54px 宽） */
  padding: 18px 48px 16px 104px;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid #ddd;
}
.bar-title {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  flex-shrink: 0;
}
.bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-shrink: 1;
}
.bar-links a {
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(13px, 1.1vw, 16px);
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease-out;
}
.bar-links a:hover { color: #e0218a; }

/* ---------- 整齐网格 + 两侧长图 ---------- */
.board {
  background: #fff;
  padding: 32px 48px 60px;
}

/* 三栏布局：左长图 | 中网格 | 右长图 */
.practice-layout {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 两侧长图栏：拉伸到与中栏同高，首尾分布 → 底部与中间对齐 */
.long-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  align-self: stretch;
}
.long-col .work-card {
  width: 100%;
}
.long-col .work-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 瀑布流（中间网格与栏目画廊共用） ----------
   图片保留原始比例，JS 按"短列优先"分配列，自动填满空隙、间距一致 */
.center-masonry { min-width: 0; }
.masonry-cols {
  display: grid;
  gap: 24px;
  align-items: start;
}
.masonry-3 { grid-template-columns: repeat(3, 1fr); }
.masonry-4 { grid-template-columns: repeat(4, 1fr); }
.masonry-5 { grid-template-columns: repeat(5, 1fr); }
.masonry-6 { grid-template-columns: repeat(6, 1fr); }
.masonry-7 { grid-template-columns: repeat(7, 1fr); }
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
/* 竖向组合：两张图并排占一格 */
.masonry-cell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* wide: true 的图片跨 2 列显示（仅 JS 列平衡模式下放最后） */
.masonry-cell-wide {
  grid-column: span 2;
}
/* 纯 grid 模式（ACES 等需要精确控制 wide 图位置的栏目） */
.masonry-grid { grid-auto-flow: dense; }
.masonry-grid .masonry-cell { display: block; }

/* 单个作品卡 */
.work-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.work-img-wrap {
  overflow: hidden;
  background: #f5f5f5;
}
.work-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 320ms ease-out;
}
.work-card:hover .work-img-wrap img {
  filter: brightness(1.08);
}
.work-cap {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  text-align: left;
}
.work-name {
  font-size: clamp(13px, 1.1vw, 16px);
  color: #222;
  line-height: 1.4;
}
.work-date {
  font-size: clamp(11px, 0.9vw, 13px);
  color: #888;
  line-height: 1.4;
  margin-top: 2px;
}

/* ---------- 单独栏目 ---------- */
.practice-section {
  padding: 0 48px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 0 32px;
}
.section-header {
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Franklin Gothic Medium Cond', 'Franklin Gothic Medium', 'Franklin Gothic', Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
  color: #111;
}
.section-date {
  display: block;
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(12px, 1vw, 14px);
  color: #888;
  margin-top: 6px;
}
.section-desc {
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.7;
  color: #555;
  margin: 0 auto 32px;
  max-width: 680px;
  text-align: center;
}

@media (max-width: 1100px) {
  .masonry-4, .masonry-5, .masonry-6, .masonry-7 { grid-template-columns: repeat(3, 1fr); }
  .masonry-4 .masonry-col, .masonry-5 .masonry-col, .masonry-6 .masonry-col, .masonry-7 .masonry-col { display: contents; }
  .masonry-cell-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .practice-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 84px 20px 14px; }
  .board { padding: 24px 20px 40px; }
  .practice-layout { grid-template-columns: 1fr; }
  .long-col { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .long-col .work-card { width: 45%; }
  .masonry-3, .masonry-4, .masonry-5, .masonry-6, .masonry-7 { grid-template-columns: repeat(2, 1fr); }
  .masonry-cols .masonry-col { display: contents; }
  .practice-section { padding: 0 20px 40px; }
}
