/* journey81 开场五圣 + L3 兵器 + 橘洲金箔卷轴 · v16 */

/* —— 首页：截图1赛博走廊 —— */
:root {
  --guide-size: clamp(1.5rem, 46.08px, 1.85rem);
}

.j81-home.is-open {
  display: block;
  padding: 0;
}
.j81-home.is-open .j81-home-bg {
  opacity: 1;
  filter: none;
  animation: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 24, 0.18), rgba(8, 6, 24, 0.45)),
    url("../assets/img/cyber_bg.webp") center / cover no-repeat,
    #0a0618;
}



.j81-home-brand {
  position: absolute;
  top: max(16px, 23.76px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  margin: 0;
  padding: 0;
  width: min(1766.4px, 780px);
  pointer-events: none;
}
.j81-home-brand .j81-logo {
  display: block !important;
  margin: 0 auto 10px;
  width: auto;
  max-width: min(1113.6px, 430px);
  max-height: min(194.4px, 175px);
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(255, 252, 240, 1)) drop-shadow(0 0 6px rgba(255, 240, 190, 0.9)) drop-shadow(0 0 10px rgba(255, 215, 120, 0.5)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) contrast(1.06) saturate(1.05);
}
.j81-home-path {
  margin: 10px 0 8px;
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif;
  font-size: clamp(1rem, 34.56px, 1.25rem);
  letter-spacing: 0.2em;
  text-indent: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.j81-home-tag {
  margin: 0 auto;
  max-width: 36em;
  font-family: var(--font-display);
  font-size: var(--guide-size);
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: #f0d898;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* 五圣：照搬旧 assess-home 绝对定位 */
.j81-saints-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: block;
  width: auto;
  margin: 0;
}
.j81-saints-stage .saint {
  position: absolute;
  bottom: calc(30% - 84px);
  left: 50%;
  width: calc(96px * 4.2);
  transform: translateX(-50%) scale(var(--depth-scale, 1));
  transform-origin: center bottom;
  text-align: center;
  pointer-events: auto;
  animation: j81-saint-float 3.5s ease-in-out infinite;
}
.j81-saints-stage .saint[data-char="wukong"] {
  left: 18.4% !important;
  --depth-scale: 0.76;
  animation-delay: 0s;
}
.j81-saints-stage .saint[data-char="bajie"] {
  left: 34.2% !important;
  --depth-scale: 0.75;
  animation-delay: 0.35s;
}
.j81-saints-stage .saint[data-char="tangseng"] {
  left: 50% !important;
  bottom: calc(30% - 72px) !important;
  --depth-scale: 1;
  width: calc(96px * 4.2);
  animation-delay: 0.7s;
}
.j81-saints-stage .saint[data-char="shaseng"] {
  left: 65.8% !important;
  --depth-scale: 0.75;
  animation-delay: 1.05s;
}
.j81-saints-stage .saint[data-char="bailong"] {
  left: 81.6% !important;
  --depth-scale: 0.88;
  animation-delay: 1.4s;
}

@keyframes j81-saint-float {
  0%, 100% { transform: translateX(-50%) scale(var(--depth-scale, 1)); }
  50% { transform: translateX(-50%) translateY(-12px) scale(var(--depth-scale, 1)); }
}

.saint-stack {
  position: relative;
  width: 100%;
  overflow: visible;
}
.saint-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(410.4px, 453.6px);
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(140, 180, 255, 0.35));
  pointer-events: none;
  user-select: none;
}
.saint[data-char="wukong"] .saint-img { filter: drop-shadow(0 0 32px rgba(180, 90, 255, 0.55)); }
.saint[data-char="bajie"] .saint-img { filter: drop-shadow(0 0 28px rgba(255, 160, 60, 0.45)); }
.saint[data-char="tangseng"] .saint-img { filter: drop-shadow(0 0 36px rgba(255, 230, 140, 0.65)); }
.saint[data-char="bailong"] .saint-img { filter: drop-shadow(0 0 28px rgba(120, 220, 255, 0.5)); }
.saint[data-char="shaseng"] .saint-img { filter: drop-shadow(0 0 28px rgba(255, 90, 70, 0.45)); }

.saint-cloud {
  position: absolute;
  left: 50%;
  /* ★ 2026-10-14 纠偏：原bottom:-35% 是「按各自 stack 高度的百分比」，
     而五张立绘原始高宽比不同（画布内 stack 高339~403px），解析出的
     绝对偏移在 119~141px 之间漂移，导致悟空/八戒/沙僧/白龙都离开云朵。
     现改为每个角色显式像素偏移（canvas 1920 坐标），以唐僧为基准对齐，
     云顶略高于人物盘腿底 → 人物微微坐进云里，不悬空也不深陷。 */
  bottom: var(--cloud-bottom, -118px);
  width: 78%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.saint[data-char="wukong"] .saint-cloud { width: 74%; --cloud-bottom: -97px; }
.saint[data-char="bajie"] .saint-cloud { width: 88%; --cloud-bottom: -108px; }
.saint[data-char="tangseng"] .saint-cloud { width: 80%; --cloud-bottom: -118px; }
.saint[data-char="bailong"] .saint-cloud { width: 72%; --cloud-bottom: -74px; }
.saint[data-char="shaseng"] .saint-cloud { width: 80%; --cloud-bottom: -95px; }

.age-badge,
.saint-label { display: none !important; }

.j81-home-cta {
  position: absolute;
  left: 50%;
  bottom: max(18px, 3.5%);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
}

/* —— 橘洲金箔卷轴 —— */
.gold-holo { position: relative; overflow: visible !important; }
/* 过招/盘方：与旧 .holo-stage.gold-holo 一致，overflow 可见以露出卷轴杆；裁切交给内文区 */
#j81-stage-panel.gold-holo,
#j81-gate-panel.gold-holo {
  overflow: visible !important;
}
.j81-l3-holo.gold-holo,
#j81-stage-panel.gold-holo,
#j81-gate-panel.gold-holo,
#j81-scroll-panel.gold-holo {
  position: absolute !important;
}
.gold-scroll-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 1 !important;
  visibility: visible !important;
}
.gs-panel {
  position: absolute;
  /* 旧「95%透明」；略提金箔可见度，避免壳透后框感消失 */
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.08) 0%,
    rgba(218, 165, 32, 0.055) 25%,
    rgba(255, 240, 180, 0.07) 50%,
    rgba(218, 165, 32, 0.055) 75%,
    rgba(255, 215, 0, 0.08) 100%) !important;
  pointer-events: none;
  z-index: 0;
}
.gold-scroll-wrap[data-type="horizontal"] .gs-panel { left: 8px; right: 8px; top: 4px; bottom: 4px; }
.gold-scroll-wrap[data-type="vertical"] .gs-panel { top: 8px; bottom: 8px; left: 4px; right: 4px; }
.gold-scroll-wrap[data-type="horizontal"] .gs-frame { left: 14px; right: 14px; top: 10px; bottom: 10px; }
.gold-scroll-wrap[data-type="vertical"] .gs-frame { top: 14px; bottom: 14px; left: 10px; right: 10px; }

.gs-rod { position: absolute; z-index: 10; pointer-events: none; }
.gs-rod.vertical { top: -12px; bottom: -12px; width: 12px; }
.gs-rod.vertical.left { left: -4px; }
.gs-rod.vertical.right { right: -4px; }
.gs-rod.horizontal { left: -12px; right: -12px; height: 12px; }
.gs-rod.horizontal.top { top: -4px; }
.gs-rod.horizontal.bottom { bottom: -4px; }
.gs-rod-body { position: absolute; inset: 0; border-radius: 999px; }
.gs-rod.vertical .gs-rod-body {
  background: linear-gradient(180deg,
    transparent 0%, rgba(255, 215, 0, 0.25) 8%, rgba(255, 248, 200, 0.6) 30%,
    rgba(255, 255, 230, 0.9) 50%, rgba(255, 248, 200, 0.6) 70%,
    rgba(255, 215, 0, 0.25) 92%, transparent 100%);
  box-shadow:
    0 0 10px rgba(255, 235, 170, 0.75), 0 0 22px rgba(255, 215, 0, 0.55),
    0 0 38px rgba(255, 200, 0, 0.32), inset 0 0 8px rgba(255, 255, 225, 0.6);
  animation: gsRodBreath 3s ease-in-out infinite;
}
.gs-rod.horizontal .gs-rod-body {
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 215, 0, 0.25) 8%, rgba(255, 248, 200, 0.6) 30%,
    rgba(255, 255, 230, 0.9) 50%, rgba(255, 248, 200, 0.6) 70%,
    rgba(255, 215, 0, 0.25) 92%, transparent 100%);
  box-shadow:
    0 0 10px rgba(255, 235, 170, 0.75), 0 0 22px rgba(255, 215, 0, 0.55),
    0 0 38px rgba(255, 200, 0, 0.32), inset 0 0 8px rgba(255, 255, 225, 0.6);
  animation: gsRodBreath 3s ease-in-out infinite;
}
@keyframes gsRodBreath {
  0%, 100% { filter: brightness(1); opacity: 0.85; }
  50% { filter: brightness(1.4); opacity: 1; }
}
.gs-rod-cap { position: absolute; pointer-events: none; }
.gs-rod-cap svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
  animation: gsCapPulse 2.8s ease-in-out infinite;
}
@keyframes gsCapPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,215,0,0.7)) drop-shadow(0 0 10px rgba(255,215,0,0.35)); }
}
.gs-rod.vertical .gs-rod-cap { left: 50%; transform: translateX(-50%); width: 20px; height: 24px; }
.gs-rod.vertical .gs-rod-cap.top { top: -22px; }
.gs-rod.vertical .gs-rod-cap.bottom { bottom: -22px; transform: translateX(-50%) rotate(180deg); }
.gs-rod.horizontal .gs-rod-cap { top: 50%; transform: translateY(-50%); width: 24px; height: 20px; }
.gs-rod.horizontal .gs-rod-cap.left { left: -22px; }
.gs-rod.horizontal .gs-rod-cap.right { right: -22px; transform: translateY(-50%) rotate(180deg); }

.gs-frame { position: absolute; pointer-events: none; z-index: 5; animation: gsFrameBreath 3.5s ease-in-out infinite; }
@keyframes gsFrameBreath {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
.gs-border-outer.h {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.85) 5%, rgba(255, 248, 200, 1) 50%, rgba(255, 215, 0, 0.85) 95%, transparent 100%);
  box-shadow: 0 0 2px rgba(255,255,220,0.9), 0 0 6px rgba(255,215,0,0.55), 0 0 12px rgba(255,200,0,0.25);
}
.gs-border-outer.h.top { top: 0; }
.gs-border-outer.h.bottom { bottom: 0; }
.gs-border-outer.v {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.85) 5%, rgba(255, 248, 200, 1) 50%, rgba(255, 215, 0, 0.85) 95%, transparent 100%);
  box-shadow: 0 0 2px rgba(255,255,220,0.9), 0 0 6px rgba(255,215,0,0.55), 0 0 12px rgba(255,200,0,0.25);
}
.gs-border-outer.v.left { left: 0; }
.gs-border-outer.v.right { right: 0; }
.gs-border-inner.h {
  position: absolute; left: 6px; right: 6px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.55) 10%, rgba(255, 240, 180, 0.85) 50%, rgba(255, 215, 0, 0.55) 90%, transparent 100%);
}
.gs-border-inner.h.top { top: 6px; }
.gs-border-inner.h.bottom { bottom: 6px; }
.gs-border-inner.v {
  position: absolute; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.55) 10%, rgba(255, 240, 180, 0.85) 50%, rgba(255, 215, 0, 0.55) 90%, transparent 100%);
}
.gs-border-inner.v.left { left: 6px; }
.gs-border-inner.v.right { right: 6px; }

.gs-corner { position: absolute; width: 32px; height: 32px; z-index: 6; pointer-events: none; }
.gs-corner svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 4px rgba(255, 247, 214, 0.9)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.55)) drop-shadow(0 0 26px rgba(255, 200, 0, 0.3));
  animation: gsCornerPulse 3s ease-in-out infinite;
}
@keyframes gsCornerPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,247,214,1)) drop-shadow(0 0 16px rgba(255,215,0,0.75)) drop-shadow(0 0 30px rgba(255,200,0,0.4)); }
}
.gs-corner.tl { top: -3px; left: -3px; }
.gs-corner.tr { top: -3px; right: -3px; transform: scaleX(-1); }
.gs-corner.bl { bottom: -3px; left: -3px; transform: scaleY(-1); }
.gs-corner.br { bottom: -3px; right: -3px; transform: scale(-1, -1); }

.gs-peak { position: absolute; z-index: 7; pointer-events: none; }
.gs-peak svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 4px rgba(255, 247, 214, 0.85)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 28px rgba(255, 200, 0, 0.28));
  animation: gsPeakGlow 2.8s ease-in-out infinite;
}
@keyframes gsPeakGlow {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,247,214,1)) drop-shadow(0 0 18px rgba(255,215,0,0.7)) drop-shadow(0 0 32px rgba(255,200,0,0.38)); }
}
.gs-peak.top { top: 0; left: 50%; transform: translateX(-50%) rotate(180deg); width: 36px; height: 14px; }
.gs-peak.bottom { bottom: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 14px; }
.gs-peak.bottom svg { animation-delay: 1.4s; }
.gs-peak.left { left: -11px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 36px; height: 14px; }
.gs-peak.left svg { animation-delay: 0.7s; }
.gs-peak.right { right: -11px; top: 50%; transform: translateY(-50%) rotate(-90deg); width: 36px; height: 14px; }
.gs-peak.right svg { animation-delay: 2.1s; }

/* —— 对齐旧版 ui-polish：回纹 ×2（64px）贴 gs-frame 四角；山峰 ×2.5（90×35）贴内框 —— */
.gold-scroll-wrap .gs-corner {
  width: 64px !important;
  height: 64px !important;
}
.gold-scroll-wrap .gs-frame .gs-corner.tl {
  top: 0 !important; left: 0 !important; right: auto !important; bottom: auto !important;
  transform: none !important;
}
.gold-scroll-wrap .gs-frame .gs-corner.tr {
  top: 0 !important; right: 0 !important; left: auto !important; bottom: auto !important;
  transform: scaleX(-1) !important;
}
.gold-scroll-wrap .gs-frame .gs-corner.bl {
  bottom: 0 !important; left: 0 !important; top: auto !important; right: auto !important;
  transform: scaleY(-1) !important;
}
.gold-scroll-wrap .gs-frame .gs-corner.br {
  bottom: 0 !important; right: 0 !important; top: auto !important; left: auto !important;
  transform: scale(-1, -1) !important;
}

.gold-scroll-wrap .gs-frame .gs-peak {
  width: 90px !important;
  height: 35px !important;
}
/* 上下峰：底边贴内框，尖朝屏内（上峰 rotate 180，origin 居中，避免翻出框外） */
.gold-scroll-wrap .gs-frame .gs-peak.top {
  top: 0 !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform-origin: 50% 50% !important;
  transform: translateX(-50%) rotate(180deg) !important;
}
.gold-scroll-wrap .gs-frame .gs-peak.bottom {
  top: auto !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform-origin: 50% 100% !important;
  transform: translateX(-50%) !important;
}
/* 左右峰：绕边中点旋转后内移半高 17.5px，使底边落在内框（L3/双栏横卷） */
.gold-scroll-wrap .gs-frame .gs-peak.left {
  left: 0 !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform-origin: 0% 50% !important;
  transform: translate(17.5px, -50%) rotate(90deg) !important;
}
.gold-scroll-wrap .gs-frame .gs-peak.right {
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform-origin: 100% 50% !important;
  transform: translate(-17.5px, -50%) rotate(-90deg) !important;
}
/* 过招/盘方卷轴已复制图1偏侧几何（边距 14%/2%），左右峰与全局一致内移贴内框 */

/* ============== 电流流动感（旧版 1.2s 一圈；锐利白芯 + 金晕，忌糊边） ============== */
.gs-electric {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  filter: none !important;
  opacity: 1;
}
.gs-electric.top { top: 0; left: 0; right: 0; height: 3px; }
.gs-electric.top::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 46%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.55) 18%,
    rgba(255, 250, 200, 0.95) 42%,
    #fff 50%,
    rgba(255, 250, 200, 0.95) 58%,
    rgba(255, 215, 0, 0.55) 82%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(255, 255, 230, 1),
    0 0 18px rgba(255, 229, 127, 0.95),
    0 0 34px rgba(255, 215, 0, 0.6),
    0 0 54px rgba(255, 190, 0, 0.35),
    0 0 72px rgba(0, 240, 255, 0.18);
  animation: gsElecTop 1.2s linear infinite;
  will-change: left;
}
@keyframes gsElecTop { 0% { left: -35%; } 100% { left: 100%; } }

.gs-electric.right { right: 0; top: 0; bottom: 0; width: 3px; }
.gs-electric.right::before {
  content: '';
  position: absolute;
  top: -50%; right: 0;
  width: 100%; height: 46%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 215, 0, 0.55) 18%,
    rgba(255, 250, 200, 0.95) 42%,
    #fff 50%,
    rgba(255, 250, 200, 0.95) 58%,
    rgba(255, 215, 0, 0.55) 82%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(255, 255, 230, 1),
    0 0 18px rgba(255, 229, 127, 0.95),
    0 0 34px rgba(255, 215, 0, 0.6),
    0 0 54px rgba(255, 190, 0, 0.35),
    0 0 72px rgba(0, 240, 255, 0.18);
  animation: gsElecRight 1.2s linear infinite;
  animation-delay: 0.3s;
  will-change: top;
}
@keyframes gsElecRight { 0% { top: -35%; } 100% { top: 100%; } }

.gs-electric.bottom { bottom: 0; left: 0; right: 0; height: 3px; }
.gs-electric.bottom::before {
  content: '';
  position: absolute;
  bottom: 0; right: -50%;
  width: 46%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.55) 18%,
    rgba(255, 250, 200, 0.95) 42%,
    #fff 50%,
    rgba(255, 250, 200, 0.95) 58%,
    rgba(255, 215, 0, 0.55) 82%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(255, 255, 230, 1),
    0 0 18px rgba(255, 229, 127, 0.95),
    0 0 34px rgba(255, 215, 0, 0.6),
    0 0 54px rgba(255, 190, 0, 0.35),
    0 0 72px rgba(0, 240, 255, 0.18);
  animation: gsElecBottom 1.2s linear infinite;
  animation-delay: 0.6s;
  will-change: right;
}
@keyframes gsElecBottom { 0% { right: -35%; } 100% { right: 100%; } }

.gs-electric.left { left: 0; top: 0; bottom: 0; width: 3px; }
.gs-electric.left::before {
  content: '';
  position: absolute;
  bottom: -50%; left: 0;
  width: 100%; height: 46%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 215, 0, 0.55) 18%,
    rgba(255, 250, 200, 0.95) 42%,
    #fff 50%,
    rgba(255, 250, 200, 0.95) 58%,
    rgba(255, 215, 0, 0.55) 82%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(255, 255, 230, 1),
    0 0 18px rgba(255, 229, 127, 0.95),
    0 0 34px rgba(255, 215, 0, 0.6),
    0 0 54px rgba(255, 190, 0, 0.35),
    0 0 72px rgba(0, 240, 255, 0.18);
  animation: gsElecLeft 1.2s linear infinite;
  animation-delay: 0.9s;
  will-change: bottom;
}
@keyframes gsElecLeft { 0% { bottom: -35%; } 100% { bottom: 100%; } }

/* 金框描边：高光白芯 + 亮金本体 + 冷青外晕（与深蓝黑背景拉开色温差） */
.gs-border-outer.h,
.gs-border-outer.v {
  box-shadow:
    0 0 3px rgba(255, 250, 220, 1),
    0 0 16px rgba(255, 229, 127, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 46px rgba(0, 240, 255, 0.16) !important;
}
.gs-border-inner.h,
.gs-border-inner.v {
  box-shadow:
    0 0 2px rgba(255, 248, 200, 0.95),
    0 0 9px rgba(255, 229, 127, 0.45) !important;
}
/* 框后环境背光：让金框从深背景里“亮出来” */
.gs-frame::before {
  content: "";
  position: absolute;
  inset: -32px;
  border-radius: 26px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%,
    rgba(255, 229, 127, 0.14) 0%,
    rgba(255, 229, 127, 0.05) 45%,
    rgba(0, 240, 255, 0.035) 62%,
    transparent 78%);
  pointer-events: none;
}
/* 框体电流：悬停/激活时提速增亮 */
.gold-holo:hover .gs-electric::before {
  animation-duration: 0.5s !important;
  filter: brightness(1.4) saturate(1.2);
}
.gs-frame {
  filter: none !important;
  animation: gsFrameBreath 3.5s ease-in-out infinite;
}
@keyframes gsFrameBreath {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
}

.gs-pulse-dot {
  position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%;
  background: #fff8dc;
  box-shadow: 0 0 3px rgba(255,215,0,0.6), 0 0 6px rgba(255,215,0,0.3);
  z-index: 8; animation: gsDotPulse 2s ease-in-out infinite;
}
@keyframes gsDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.8); opacity: 1; }
}

.gold-holo > .j81-l3-holo-inner,
.gold-holo.j81-panel > *:not(.gold-scroll-wrap):not(.j81-stage-char),
.gold-holo.j81-scroll-panel > *:not(.gold-scroll-wrap) {
  position: relative;
  z-index: 10;
}
.gold-holo.j81-panel > .j81-stage-char {
  z-index: 15;
}
.gold-holo h1,
.gold-holo h2,
.j81-l3-holo h2 {
  /* 颜色交给气泡金字渐变；此处只保留轻微结构阴影由 filter 承担 */
  color: transparent;
  text-shadow: none;
}
.j81-l3-holo,
.j81-holo-panel.gold-holo,
#j81-scroll-panel.gold-holo,
#j81-stage-panel.gold-holo,
#j81-gate-panel.gold-holo,
#j81-portrait-panel.gold-holo {
  /* 旧版：壳透明，仅 .gs-panel ~5% 金箔；禁止 0.94 不透明底板 */
  border-color: rgba(255, 215, 0, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.18),
    0 0 22px rgba(255, 215, 0, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.35) !important;
  background: transparent !important;
}
.gold-holo.j81-holo-panel::before,
.gold-holo.j81-holo-panel::after,
.gold-holo.j81-l3-holo::before,
.gold-holo.j81-l3-holo::after,
.gold-holo.j81-scroll-panel::before,
.gold-holo.j81-scroll-panel::after {
  display: none !important;
}

/* —— L3：旧版左卷轴 + 右侧立绘（立绘严格缩小） —— */
.j81-l3 {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: none;
  background: var(--deep);
  overflow: visible;
}
.j81-l3.is-open { display: block; }
.j81-l3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/背景/04_星云八卦图_v76.webp") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.j81-l3-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* L3 基础壳；具体左右站位由 j81-layout-badge.css + data-layout 接管 */
.j81-l3-holo {
  position: absolute;
  color: #f0e6c8;
  font-family: var(--font-display);
  overflow: visible;
  box-sizing: border-box;
  z-index: 2;
}
.j81-l3-holo-inner {
  height: 100%;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35em;
  max-width: none;
}
.j81-l3-holo .j81-scroll-kicker {
  margin: 0;
  font-size: clamp(0.95rem, 26.88px, 1.15rem);
  letter-spacing: 0.18em;
  color: rgba(120, 220, 255, 0.95);
  font-family: var(--font-ui);
}
.j81-l3-holo h2,
#j81-l3-title {
  margin: 0.08em 0 0.12em;
  font-family: "悟道中宋", "方正墨韵体简", "STZhongsong", "KaiTi", serif !important;
  font-size: clamp(2.6rem, 99.84px, 3.45rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em;
  line-height: 1.15;
}
.j81-l3-meta,
.j81-l3-spirit {
  margin: 0 0 0.35em;
  font-size: clamp(1.05rem, 29.76px, 1.28rem);
  color: #D4AF37;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  -webkit-text-fill-color: #D4AF37;
}
.j81-l3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0.55em;
}
.j81-l3-tags .j81-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 200, 255, 0.55);
  background: rgba(20, 60, 110, 0.55);
  color: #e8f7ff;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  font-family: var(--font-ui);
}
.j81-l3-desc {
  margin: 0.2em 0 0.55em;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 24, 48, 0.55);
  font-size: clamp(0.82rem, 25.92px, 1.0rem);
  font-weight: 400;
  line-height: 1.7;
  font-family: var(--font-ui);
  color: rgba(245, 235, 210, 0.95);
}
.j81-l3-holo .j81-home-cta {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px 18px;
  margin-top: 0.55em;
  width: auto;
}
.j81-l3-char {
  position: absolute;
  z-index: 8;
  pointer-events: none;
}
.j81-l3-char .j81-weapon {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: 842.4px !important;
}
.j81-l3-holo.gold-holo .gs-rod.vertical.left,
.j81-l3-holo.gold-holo .gs-rod.vertical.right,
.j81-l3-holo.gold-holo .gs-peak.left,
.j81-l3-holo.gold-holo .gs-peak.right { display: block; }

/* —— 开局定盘：对齐旧 #assess-panel 全屏金箔卷轴，四题不配立绘 —— */
.j81-portrait.is-open {
  align-items: center;
  justify-content: center;
  padding: 21.6px 38.4px;
  display: flex;
}
.j81-portrait-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#j81-portrait-panel.j81-portrait-wide {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  /* 旧版：--holo-w:1766.4px; --holo-h:950.4px */
  width: 1766.4px !important;
  max-width: 1766.4px !important;
  height: auto !important;
  max-height: 1015.2px;
  min-height: 0;
  aspect-ratio: auto;
  padding: clamp(22px, 34.56px, 40px) clamp(36px, 76.8px, 64px) !important;
  font-size: 1.22rem;
  z-index: 2;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
}
#j81-portrait-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
/* 底部两按钮永远钉在卷轴内下缘（不被内容顶出框外） */
#j81-portrait-panel > .j81-actions {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-bottom: 4px;
}
#j81-portrait-panel > .j81-hint { flex: 0 0 auto; }
#j81-portrait-panel.gold-holo .gs-rod.vertical.right,
#j81-portrait-panel.gold-holo .gs-peak.right { display: block; }

#j81-portrait-panel h1 {
  font-family: "悟道中宋", "方正墨韵体简", "STZhongsong", "KaiTi", serif !important;
  font-size: clamp(2rem, 65.28px, 2.7rem) !important;
  letter-spacing: 0.16em;
  margin-bottom: 10px !important;
}
#j81-portrait-panel .j81-intro {
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif;
  font-size: var(--guide-size);
  line-height: 1.7;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
  text-align: left;
}
#j81-portrait-panel .j81-opt {
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 1.18rem;
  align-items: center;
}
#j81-portrait-panel .j81-opt .txt {
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif !important;
  font-size: clamp(1.18rem, 37.44px, 1.42rem) !important;
  line-height: 1.6;
}
#j81-portrait-panel .j81-opt .letter { font-size: 1.25rem; }
#j81-portrait-panel .j81-heaviest {
  font-size: 1.05rem !important;
  padding: 10px 14px;
  min-width: 3.2em;
  flex-shrink: 0;
}
#j81-portrait-panel .j81-heaviest.is-on { box-shadow: 0 0 14px rgba(255, 200, 80, 0.45); }
#j81-portrait-panel .j81-heaviest.needs-pick {
  animation: j81-heaviest-pulse 1s ease-in-out infinite;
  border-color: rgba(255, 200, 80, 0.95);
}
@keyframes j81-heaviest-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 200, 80, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 200, 80, 0.55); }
}
#j81-portrait-panel .j81-hint { font-size: 1.15rem !important; }
#j81-portrait-panel .j81-actions button {
  font-size: 1.15rem;
  padding: 14px 26px;
}
#j81-portrait-body .phase { font-size: 1.05rem !important; }
#j81-portrait-body .j81-scroll {
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif !important;
  font-size: clamp(2.4rem, 65.28px, 3.4rem) !important;
  line-height: 1.35;
  padding: 20px 24px;
}

/* ═══ 方案A 画布缩放：作废原窄屏媒体查询 ═══
   画布恒 1920 宽，900px 物理断点在任何常规屏下都不命中（死规则），
   且其声明值已按画布换算，留着只会在超窄窗口误触发。
   保留原文备查，需要回退请删除本段。 */
/* @media (max-width: 900px) {
/*   .j81-home-path { letter-spacing: 0.12em; }
/*   .j81-saints-stage .saint { width: calc(72px * 3.4); bottom: 22% !important; }
/*   .j81-saints-stage .saint[data-char="tangseng"] { bottom: calc(22% + 12px) !important; }
/*   .saint-img { max-height: min(345.6px, 36dvh); }
/*   .j81-l3-stage { overflow: auto; }
/*   .j81-l3-holo {
/*     position: relative;
/*     left: auto;
/*     top: auto;
/*     transform: none;
/*     width: min(1804.8px, 560px);
/*     max-width: 1804.8px;
/*     aspect-ratio: auto;
/*     max-height: none;
/*     padding: 20px 16px;
/*     margin: 21.6px auto 0;
/*   }
/*   .j81-l3-char {
/*     position: relative;
/*     right: auto;
/*     top: auto;
/*     transform: none;
/*     display: flex;
/*     justify-content: center;
/*     margin: 0 auto 21.6px;
/*   }
/*   .j81-l3-char .j81-char-stack {
/*     width: min(806.4px, 220px);
/*   }
/*   .j81-l3-char .j81-weapon {
/*     max-height: 388.8px !important;
/*   }
/*   #j81-portrait-panel.j81-portrait-wide {
/*     width: 1804.8px !important;
/*     max-width: 1804.8px !important;
/*     height: 972px !important;
/*     max-height: 972px;
/*     aspect-ratio: auto;
/*     padding: 20px 16px !important;
/*   }
/* }
*/

/* 五徒头顶五字气泡：对话气泡PNG同款材质 + 金色渐变字（锁镜自助入口） */
.j81-saints-stage .saint-bubble {
  visibility: visible;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 112px;
  height: calc(112px * 348 / 384);
  padding: 0 0 20px;
  border: none;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}
/* ★ 2026-10-14 纠偏：气泡盒偏大（原 127/149/128/149/127px），单字显得空。
   盒宽收窄约 20%，但 span 字号一律不动 —— 保持原本合适的字大小。 */
.j81-saints-stage .saint[data-char="wukong"] .saint-bubble { background-image: url("../assets/img/对话气泡/3.webp"); width: 104px; height: calc(104px * 348 / 384); bottom: 96%; }
.j81-saints-stage .saint[data-char="bajie"] .saint-bubble { background-image: url("../assets/img/对话气泡/4.webp"); width: 120px; height: calc(120px * 348 / 384); bottom: 86%; }
.j81-saints-stage .saint[data-char="tangseng"] .saint-bubble { background-image: url("../assets/img/对话气泡/1.webp"); width: 105px; height: calc(105px * 348 / 384); bottom: 92%; }
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble { background-image: url("../assets/img/对话气泡/2.webp"); width: 120px; height: calc(120px * 348 / 384); bottom: 90%; }
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble { background-image: url("../assets/img/对话气泡/5.webp"); width: 104px; height: calc(104px * 348 / 384); bottom: 85%; }
.j81-saints-stage .saint-bubble span {
  display: block;
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  background-image: linear-gradient(168deg,
    #FFFEF6 0%, #F0E4B8 10%, #D4AF37 26%, #A07A16 44%,
    #3A280C 62%, #120C06 76%, #6B4E12 90%, #C9A227 100%);
  background-size: 100% 140%;
  background-position: 50% 18%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 -0.7px 0 rgba(255, 252, 240, 0.62))
    drop-shadow(0.9px 1.5px 0 rgba(14, 10, 4, 0.96));
  transform: translateY(-10%);
  pointer-events: none;
}
.j81-saints-stage .saint[data-char="wukong"] .saint-bubble span { font-size: 58px; }
.j81-saints-stage .saint[data-char="bajie"] .saint-bubble span { font-size: 58px; }
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble span { font-size: 58px; }
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble span { font-size: 52px; }
.j81-saints-stage .saint[data-char="tangseng"] .saint-bubble span { font-size: 50px; }
.j81-saints-stage .saint-bubble:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.07);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

/* 悬浮分组：悟空/唐僧/白龙同相上浮，八戒/沙僧反相下沉 */
.j81-saints-stage .saint[data-char="wukong"],
.j81-saints-stage .saint[data-char="tangseng"],
.j81-saints-stage .saint[data-char="bailong"] { animation-delay: 0s !important; }
.j81-saints-stage .saint[data-char="bajie"],
.j81-saints-stage .saint[data-char="shaseng"] { animation-delay: -1.75s !important; }

/* 底部双按钮再上移一个按钮身位 */
.j81-home-cta { bottom: max(18px, 3.5%) !important; }


/* ===== 五徒气泡微调（2026-09-27 定版）：位置逐徒对位 + 沙僧/白龙镜像 + 字号统一 + 居中去尖角区 ===== */
/* 文字：全部按唐僧字号屏显 50px（反深度换算），在泡体除尖角区居中 */
.j81-saints-stage .saint-bubble { padding: 0 8px 26px; }
.j81-saints-stage .saint-bubble span { transform: none; }
.j81-saints-stage .saint[data-char="wukong"] .saint-bubble span { font-size: 57px; }
.j81-saints-stage .saint[data-char="bajie"] .saint-bubble span { font-size: 67px; }
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble span { font-size: 67px; transform: scaleX(-1); }
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble span { font-size: 57px; transform: scaleX(-1); }
.j81-saints-stage .saint[data-char="tangseng"] .saint-bubble span { font-size: 50px; }

/* 悟空：左移至左耳列，下移一个头发高（≈12%） */
.j81-saints-stage .saint[data-char="wukong"] .saint-bubble { left: 30%; }
/* 八戒：右移至右耳根列，与悟空同高 */
.j81-saints-stage .saint[data-char="bajie"] .saint-bubble { left: 66%; }
/* 唐僧：下移贴近头顶 */
/* 沙僧：镜像翻转（尖角反向）+ 左移至左耳根列，与悟空同高 */
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble { left: 33%; transform: translateX(-50%) scaleX(-1); }
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble:hover { transform: translateX(-50%) scaleX(-1) translateY(-4px) scale(1.07); }
/* 白龙：镜像翻转 + 左移至左龙角列，与悟空同高 */
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble { transform: translateX(-50%) scaleX(-1); }
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble:hover { transform: translateX(-50%) scaleX(-1) translateY(-4px) scale(1.07); }

/* ===== 气泡字微调 2026-09-27b ===== */
/* 悟空「嗔」：左下微移居中 */
.j81-saints-stage .saint[data-char="wukong"] .saint-bubble span { transform: translate(-7%, 9%); }
/* 八戒「贪」：右下微移居中（幅度比悟空大） */
.j81-saints-stage .saint[data-char="bajie"] .saint-bubble span { transform: translate(25%, 12%); }
/* 沙僧「痴」：垂直下移居中；泡体左移，尖角不刺头 */
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble span { transform: translate(0, 15%) scaleX(-1); }
.j81-saints-stage .saint[data-char="shaseng"] .saint-bubble { left: 22%; }
/* 白龙「慢」：垂直下移居中；泡体右移至头部中间 */
.j81-saints-stage .saint[data-char="bailong"] .saint-bubble span { transform: translate(0, 12%) scaleX(-1); }
/* 唐僧「疑」：放大一个字号 */
.j81-saints-stage .saint[data-char="tangseng"] .saint-bubble span { font-size: 56px; transform: translate(0, 8%); }


/* logo 下小字：图内糊字已裁，真文字替代 */
.j81-home-path-re {
  margin: -8px 0 0;
  font-family: "悟道中宋", "STZhongsong", "KaiTi", serif;
  font-size: clamp(0.85rem, 30.72px, 1.15rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: #d8b96a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}


/* ===== L3/卷轴描述文字：普通黑体（最后加载，压住中宋） ===== */
#j81-l3-desc, .j81-l3-desc, #j81-l3-stage .j81-scroll-desc {
  font-family: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", "宋体", sans-serif !important;
  font-weight: 400 !important;
}
