* {
  margin: 0; padding: 0; box-sizing: border-box; user-select: none;
}

body {
  width: 100vw; height: 100vh; overflow: hidden; background: #0c1017;
  display: flex; justify-content: center; align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Helvetica Neue", sans-serif;
}

/* ===================================================
   0. 3D 原木门欢迎页
   =================================================== */
.welcome-door-stage {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #080a0f; z-index: 2000; display: flex; justify-content: center; align-items: center;
  overflow: hidden; perspective: 1600px; cursor: pointer; transition: opacity 1.2s ease;
}
.door-frame-3d {
  position: relative; width: 100vw; height: 56.25vw;
  max-height: 100vh; max-width: 177.78vh; display: flex; transform-style: preserve-3d;
}
.door-leaf-panel {
  position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden;
  transition: transform 2.4s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 2.0s ease;
}
.door-leaf-left  { left: 0; transform-origin: left center; }
.door-leaf-right { right: 0; transform-origin: right center; }
.door-image-slice {
  position: absolute; top: 0; width: 200%; height: 100%;
  background: url('images/core/door.jpg') no-repeat center center; background-size: 100% 100%;
}
.door-leaf-left .door-image-slice  { left: 0; }
.door-leaf-right .door-image-slice { left: -100%; }
.welcome-door-stage.door-opened .door-leaf-left { transform: rotateY(86deg) translateZ(-80px); opacity: 0; }
.welcome-door-stage.door-opened .door-leaf-right { transform: rotateY(-86deg) translateZ(-80px); opacity: 0; }
.welcome-door-stage.fade-out { opacity: 0; pointer-events: none; }

/* ===================================================
   主房间与全屋框架
   =================================================== */
.room-stage {
  position: relative; width: 100vw; height: 56.25vw;
  max-height: 100vh; max-width: 177.78vh;
  background: url('images/core/room.jpg') no-repeat center center;
  background-size: 100% 100%; overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
  transition: filter 2.0s cubic-bezier(0.2, 0.8, 0.25, 1), transform 2.0s ease;
}
.room-stage.initial-dim { filter: brightness(0.2) blur(8px); transform: scale(0.98); }
.room-stage.revealed    { filter: brightness(1) blur(0px); transform: scale(1); }

/* 右上角双贴纸栏: 无白边、纯透明底、高度严格对齐 */
.home-avatar-dock {
  position: absolute; top: 22px; right: 28px; z-index: 100;
  display: flex; align-items: flex-end; gap: 12px;
}
.sticker-avatar-wrap {
  height: 44px; width: auto; display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.sticker-avatar-wrap:hover { transform: scale(1.12); }
.sticker-img { height: 44px; width: auto; object-fit: contain; pointer-events: none; }

/* 左侧头像：常驻旋转动画，默认暂停定格，播放时继续运转 */
#avatarMusicBtn {
  animation: stickerSpin 8s linear infinite;
  animation-play-state: paused; /* 默认静止在当前角度 */
}

#avatarMusicBtn.spin-playing {
  animation-play-state: running; /* 播放时原地无缝继续旋转 */
}

@keyframes stickerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 贴纸 2: 单击轻微摇摆晃动 (Wiggle) */
.sticker-avatar-wrap.wiggle-animate { animation: avatarWiggle 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes avatarWiggle {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.15) rotate(-12deg); }
  50%  { transform: scale(1.15) rotate(10deg); }
  75%  { transform: scale(1.08) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 右上角 3D 翻书隐藏彩蛋 (纯净大图) */
.room-peel-corner {
  position: absolute; top: 0; right: 0; width: 0; height: 0;
  background: #000; z-index: 90; overflow: hidden;
  box-shadow: -8px 8px 30px rgba(0, 0, 0, 0.65);
  transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1), height 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer; border-bottom-left-radius: 12px;
}
.room-peel-corner.peeled { width: 260px; height: 260px; }
.peel-secret-content { position: absolute; top: 0; right: 0; width: 260px; height: 260px; }
.peel-secret-content img { width: 100%; height: 100%; object-fit: cover; display: block; }
.peel-fold-shadow {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* 8 大热区 */
.soft-spot {
  position: absolute; z-index: 10; cursor: pointer; border-radius: 50%;
  background: transparent; transition: all 0.4s ease;
}
.soft-spot:hover {
  background: radial-gradient(ellipse at center, rgba(255, 240, 210, 0.25) 0%, rgba(255, 210, 160, 0.12) 45%, rgba(255, 200, 140, 0) 70%);
  filter: blur(12px); transform: scale(1.03);
}
#spot-map      { top: 4%; left: 0%; width: 21%; height: 62%; border-radius: 30px; }
#spot-posters  { top: 7%; left: 81%; width: 23%; height: 30%; border-radius: 20px; }
#spot-player   { top: 40%; left: 90%; width: 11%; height: 16%; }
#spot-books    { top: 48%; left: 88%; width: 14.5%; height: 48%; border-radius: 24px; }
#spot-laptop   { top: 51%; left: 29%; width: 21%; height: 23%; }
#spot-camera   { top: 75%; left: 22%; width: 17%; height: 18%; }
#spot-journal  { top: 77%; left: 42%; width: 23%; height: 20%; }
#spot-album    { top: 62%; left: 56%; width: 17%; height: 16%; }

.cozy-modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10, 14, 22, 0.88); backdrop-filter: blur(14px);
  z-index: 1000; display: none; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.cozy-modal-backdrop.active { display: flex; opacity: 1; }
.cozy-modal-box {
  position: relative; width: 94vw; max-width: 1100px; height: 88vh; max-height: 740px;
  background: #fdfaf5; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden; display: flex; flex-direction: column;
}
.modal-close-btn {
  position: absolute; top: 18px; right: 20px; width: 36px; height: 36px;
  background: rgba(0, 0, 0, 0.08); border: none; border-radius: 50%;
  color: #4a3b32; font-size: 16px; font-weight: bold; cursor: pointer;
  z-index: 1100; transition: all 0.2s;
}
.modal-close-btn:hover { background: #c97155; color: #fff; transform: rotate(90deg); }
.modal-dynamic-content { width: 100%; height: 100%; position: relative; overflow: hidden; }

/* ===================================================
   1. 旅行足迹手账 (#spot-map · ZCOOL KuaiLe 字体 + 底部锚定)
   =================================================== */
.map-view-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-color: #f4ecdc;
  background-image: url('images/core/map-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  transition:
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.65s ease;
}

.map-view-container.sink-down {
  transform: translateY(100%);
  opacity: 0;
}


.map-top-typewriter-box {
  position: absolute; top: 28px; left: 36px; z-index: 60;
  max-width: 480px; pointer-events: none;
}
.typewriter-text {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: 21px; line-height: 1.6; color: #3b2c20;
  letter-spacing: 2px; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  white-space: pre-line;
}
.typewriter-cursor {
  display: inline-block; width: 3px; height: 20px; background: #8c5a3a;
  margin-left: 4px; vertical-align: middle; animation: cursorBlink 0.8s infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.map-pins-layer {
  position: absolute;
  left: var(--map-left, 0px);
  top: var(--map-top, 0px);
  width: var(--map-width, 100%);
  height: var(--map-height, 100%);
  z-index: 50;
}

.city-pin-item { position: absolute; transform: translate(-50%, -50%); cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s ease; }
.city-pin-item:hover { transform: translate(-50%, -50%) scale(1.3); z-index: 100; }
.pin-dot { width: 9px; height: 9px; border-radius: 50%; background: #c94c32; border: 2px solid #ffffff; box-shadow: 0 0 8px rgba(201, 76, 50, 0.85); }
.pin-tooltip { position: absolute; bottom: 15px; background: rgba(45, 30, 20, 0.88); color: #fdf5e6; font-size: 12px; font-weight: bold; padding: 3px 10px; border-radius: 20px; white-space: nowrap; opacity: 0; transform: translateY(6px); pointer-events: none; transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
.pin-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: rgba(45, 30, 20, 0.88); }
.city-pin-item:hover .pin-tooltip { opacity: 1; transform: translateY(0); }

.girl-stage-layer {
  position: absolute;
  left: var(--map-left, 0px);
  top: var(--map-top, 0px);
  width: var(--map-width, 100%);
  height: var(--map-height, 100%);
  pointer-events: none;
  z-index: 150;
}

.stick-man-figure {
  position: absolute; width: 32px; height: 44px; transform: translate(-50%, -100%);
  will-change: left, top, transform; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
}
.stick-man-figure.running { animation: stickRun 0.2s infinite alternate ease-in-out; }
@keyframes stickRun { from { transform: translate(-50%, -100%) translateY(0) rotate(-6deg); } to { transform: translate(-50%, -100%) translateY(-5px) rotate(6deg); } }

.stick-man-figure.super-jump { animation: stickSuperJump 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
@keyframes stickSuperJump {
  0%   { transform: translate(-50%, -100%) scale(1); }
  40%  { transform: translate(-50%, -300%) scale(1.45); }
  70%  { transform: translate(-50%, -200%) scale(1.3); }
  100% { transform: translate(-50%, 250%) scale(0.3); opacity: 0; }
}

.journal-scroll-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #f1edfa; display: flex; justify-content: center; align-items: center;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
  overflow: hidden;
}
.journal-scroll-stage.active { transform: translateY(0); opacity: 1; }

.scrapbook-scroll-viewport {
  width: 100%; max-width: 520px; height: 100%;
  overflow-y: auto; overflow-x: hidden; padding: 40px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scrapbook-scroll-viewport::-webkit-scrollbar { display: none; }

.scrapbook-tape-strip {
  position: relative; width: 100%; background: #edf8f3;
  border-radius: 6px; box-shadow: 0 16px 45px rgba(130, 150, 140, 0.2);
  display: flex; flex-direction: column; gap: 28px; padding: 40px 24px 30px;
  background-image: radial-gradient(#d3ebd9 1px, transparent 1px); background-size: 16px 16px;
}

.washi-tape-sticker {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-1deg);
  width: 120px; height: 26px; background: rgba(220, 205, 235, 0.7); backdrop-filter: blur(2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 2px dashed rgba(0,0,0,0.15); border-right: 2px dashed rgba(0,0,0,0.15); z-index: 20;
}

.scrap-top-exit-card { padding: 10px 0; text-align: center; display: flex; justify-content: center; align-items: center; }
.scrap-explore-btn {
  background: #2b3a32; color: #fdfaf5; border: none; padding: 10px 32px;
  border-radius: 30px; font-size: 14px; font-weight: 800; cursor: pointer;
  transition: all 0.25s ease; box-shadow: 0 6px 18px rgba(43, 58, 50, 0.25);
  display: flex; align-items: center; gap: 8px;
}
.scrap-explore-btn:hover { background: #438e6e; transform: scale(1.06); }

.scrap-collage-row { position: relative; display: flex; flex-direction: column; gap: 12px; }
.scrap-collage-row.align-left  { align-items: flex-start; }
.scrap-collage-row.align-right { align-items: flex-end; }

.polaroid-frame-card {
  background: #ffffff; padding: 10px 10px 14px; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(70, 90, 80, 0.12); transition: transform 0.25s ease; width: 88%; max-width: 360px;
}
.polaroid-frame-card:hover { transform: scale(1.02) rotate(0deg) !important; z-index: 10; }
.polaroid-frame-card img {
  width: 100%; height: auto; max-height: 380px; object-fit: contain;
  display: block; border-radius: 2px; background: #f7f9f8;
}

.glassine-paper-note {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 8px;
  padding: 14px 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); max-width: 340px;
}
.glassine-note-text { font-size: 13px; line-height: 1.8; color: #32443a; font-weight: 600; text-align: justify; }

.grid-binder-scrap {
  background: #ffffff;
  background-image: linear-gradient(#e0ece4 1px, transparent 1px), linear-gradient(90deg, #e0ece4 1px, transparent 1px);
  background-size: 14px 14px; border: 1px solid #cce0d4; border-radius: 6px;
  padding: 14px 18px; max-width: 340px; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.grid-scrap-title { font-size: 11px; font-weight: 800; color: #438e6e; letter-spacing: 1.5px; margin-bottom: 5px; }
.grid-scrap-body  { font-size: 13px; line-height: 1.75; color: #2e3d35; font-weight: 600; }

.scrap-bottom-origin-card {
  margin-top: 10px; padding: 26px 22px 20px; background: #ffffff; border-radius: 12px;
  border: 1.5px solid #d5e8dc; box-shadow: 0 8px 24px rgba(70, 90, 80, 0.08);
  display: flex; flex-direction: column; gap: 8px;
}
.origin-badge-row  { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; color: #7f998c; }
.origin-city-huge  { font-size: 28px; font-weight: 900; color: #1e2c24; letter-spacing: 0.5px; line-height: 1.1; }
.origin-tagline-sub{ font-size: 13.5px; font-weight: 700; color: #537363; line-height: 1.5; }

/* ===================================================
   2. ORBIT 音乐转盘 (#spot-player)
   =================================================== */
.orbit-clean-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #f4efe6; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 0 40px 28px; overflow: hidden;
}
.orbit-top-brand { position: absolute; top: 16px; left: 32px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #8c7a6b; z-index: 50; }
.orbit-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: #c97155; }
.orbit-disk-viewport { position: relative; width: 100%; height: 430px; display: flex; justify-content: center; align-items: flex-start; overflow: visible; margin-top: 10px; }
.orbit-white-disk { position: absolute; top: -370px; width: 780px; height: 780px; border-radius: 50%; background: #ffffff; box-shadow: 0 20px 60px rgba(80, 60, 45, 0.12), inset 0 0 0 1.5px #e8e0d5; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; display: flex; justify-content: center; align-items: center; }
.disk-groove-ring { position: absolute; width: 740px; height: 740px; border-radius: 50%; border: 1.5px dashed #ded4c5; pointer-events: none; }
.disk-inner-core { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #f7f1e6; border: 2px solid #e5dbcb; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: inset 0 4px 12px rgba(0,0,0,0.04); }
.core-logo-text { font-size: 18px; font-weight: 900; letter-spacing: 4px; color: #4a3b32; }
.core-sub-text { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #a89687; margin-top: 4px; }
.orbit-album-spoke { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-origin: 0 0; }
.orbit-square-card { position: absolute; top: 250px; left: -60px; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: #222; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px #ffffff; cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.orbit-square-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.orbit-target-pointer { position: absolute; top: 400px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 100; pointer-events: none; }
.pointer-triangle { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid #1a1a1a; }
.pointer-label { font-size: 9.5px; font-weight: 800; letter-spacing: 2px; color: #1a1a1a; margin-top: 6px; text-transform: uppercase; }

.orbit-bottom-console { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 14px; z-index: 60; }
.console-main-row { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1.5px solid #e8decb; padding-bottom: 16px; }
.song-info-meta { display: flex; flex-direction: column; gap: 4px; }
.song-title-huge { font-size: 30px; font-weight: 900; color: #2b2118; letter-spacing: -0.5px; line-height: 1.1; }
.song-artist-sub { font-size: 13.5px; font-weight: 700; color: #8c7a6b; letter-spacing: 0.5px; }
.console-action-buttons { display: flex; align-items: center; gap: 14px; }
.console-btn { background: #ffffff; border: 1.5px solid #ded4c5; color: #4a3b32; width: 42px; height: 42px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 15px; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.console-btn:hover { background: #4a3b32; color: #ffffff; border-color: #4a3b32; transform: scale(1.06); }
.console-btn.play-btn-main { width: 54px; height: 54px; font-size: 20px; background: #1a1a1a; color: #ffffff; border-color: #1a1a1a; }
.console-waveform-bar { display: flex; align-items: center; gap: 16px; }
.time-indicator { font-size: 12px; font-weight: 700; color: #a49182; font-family: monospace; }
.waveform-track-wrap { flex: 1; height: 6px; background: #e8decb; border-radius: 10px; position: relative; cursor: pointer; overflow: hidden; }
.waveform-progress-glow { height: 100%; width: 0%; background: #4361ee; border-radius: 10px; box-shadow: 0 0 10px rgba(67, 97, 238, 0.6); transition: width 0.1s linear; }

/* ===================================================
   3. 人生体验打卡手账 (#spot-journal)
   =================================================== */
.journal-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; transition: background-image 0.5s ease;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 40px; box-sizing: border-box; overflow: hidden;
}
.journal-split-body { flex: 1; width: 100%; display: flex; align-items: center; }
.journal-left-column { flex: 1; height: 100%; display: flex; justify-content: center; align-items: center; padding-left: 10px; padding-right: 20px; }
.journal-items-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 11px; }
.journal-row-item { display: flex; align-items: center; cursor: pointer; transition: transform 0.15s ease; }
.journal-row-item:hover { transform: translateX(6px); }
.item-left-block { display: flex; align-items: center; gap: 12px; }
.item-check-circle {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #5a4637;
  display: flex; justify-content: center; align-items: center; font-size: 12px; line-height: 1;
  background: rgba(255, 255, 255, 0.7); flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.item-check-circle.checked { border-color: #d94b32; background: rgba(217, 75, 50, 0.2); }
.item-title-text { font-size: 16.5px; font-weight: 800; color: #1a1612; letter-spacing: 0.5px; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); }

.journal-right-column { flex: 1; height: 100%; display: flex; justify-content: center; align-items: center; padding: 0 30px; text-align: center; }
.journal-motto-poster {
  font-family: 'Special Elite', 'Courier Prime', Courier, monospace;
  font-size: 32px; line-height: 1.45; font-weight: 400; color: #1a1a1a; letter-spacing: 3.5px;
  max-width: 380px; transform: rotate(-1deg); text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.15);
}

.journal-bottom-nav { display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 50; padding: 0 10px; }
.journal-nav-arrow-btn {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.6);
  color: #2b1f18; font-size: 15px; font-weight: 900; display: flex; justify-content: center; align-items: center;
  cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.journal-nav-arrow-btn:hover { background: #2b1f18; color: #ffffff; transform: scale(1.12); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

/* ===================================================
   4. 35mm 胶卷暗房系统 (#spot-camera)
   =================================================== */
.darkroom-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, #f0f3f8 0%, #d8dfea 55%, #b5c0cf 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px 32px; overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.15);
}
.darkroom-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid rgba(0, 0, 0, 0.08); padding-bottom: 8px; z-index: 50; }
.darkroom-title { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: #414a58; }
.darkroom-body-workbench { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; }

.canister-waiting-dock {
  position: absolute; top: 0; left: 0; z-index: 40; display: flex; align-items: center; cursor: pointer;
  transform: scale(0.65); transform-origin: left top; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}
.canister-waiting-dock:hover { transform: scale(0.72); }

.active-roll-stage {
  position: relative; width: 100%; display: flex; align-items: center; transform-origin: left center; margin-top: 30px;
  animation: rollPullOut 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes rollPullOut { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.canister-cylinder {
  position: relative; width: 84px; height: 190px; background: #111111; border-radius: 16px;
  box-shadow: 6px 10px 25px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; justify-content: space-between;
  flex-shrink: 0; z-index: 30; border: 1.5px solid #222;
}
.spool-cap-top {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 30px; height: 16px;
  background: #1c1c1c; border-radius: 4px 4px 0 0; border: 1.5px solid #333; border-bottom: none;
}
.spool-cap-top::after { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 14px; height: 6px; background: #0a0a0a; border-radius: 2px 2px 0 0; }
.spool-cap-bottom {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 38px; height: 10px;
  background: #1c1c1c; border-radius: 0 0 6px 6px; border: 1.5px solid #333; border-top: none;
}
.canister-label-wrap { width: 100%; height: 100%; padding: 22px 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; }
.canister-cylinder.kodak .canister-label-wrap { background: linear-gradient(to bottom, #111 25%, #e6a117 25%, #e6a117 80%, #111 80%); }
.canister-cylinder.fuji .canister-label-wrap  { background: linear-gradient(to bottom, #111 25%, #2a8a58 25%, #2a8a58 80%, #111 80%); }
.can-text-brand { font-size: 12px; font-weight: 900; color: #fff; letter-spacing: 1px; }
.can-text-tag   { font-size: 17px; font-weight: 900; color: #111; letter-spacing: -0.5px; writing-mode: vertical-rl; }
.can-text-iso   { font-size: 13px; font-weight: 900; color: #fff; }
.canister-slit-lip { position: absolute; right: -8px; top: 20px; bottom: 20px; width: 10px; background: #080808; border-radius: 0 4px 4px 0; border: 1px solid #222; }
.mini-tongue-leader { width: 38px; height: 90px; background: #111; clip-path: polygon(0 15%, 100% 35%, 100% 65%, 0 85%); margin-left: -2px; border: 1px solid #222; }

.film-continuous-track {
  flex: 1; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; gap: 40px; padding: 20px 30px; margin-left: -4px;
  background: #0d0e11; border-top: 6px solid #000; border-bottom: 6px solid #000; border-radius: 0 14px 14px 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); scrollbar-width: none;
}
.film-continuous-track::-webkit-scrollbar { display: none; }
.pure-film-frame { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.backlit-sprocket-row { width: 100%; display: flex; justify-content: space-around; padding: 8px 0; background: #0d0e11; }
.sprocket-hole { width: 14px; height: 8px; border-radius: 2.5px; background: #f0f3f8; box-shadow: 0 0 6px rgba(255, 255, 255, 0.95); }

.frame-photo-window { background: #000; overflow: hidden; border: 3px solid #181a20; box-shadow: 0 6px 20px rgba(0,0,0,0.65); }
.frame-photo-window.land { width: 400px; height: 266px; }
.frame-photo-window.port { width: 260px; height: 390px; }
.frame-photo-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-caption-block { margin-top: 10px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.caption-place { font-size: 13px; font-weight: 800; color: #2b323d; letter-spacing: 0.5px; }
.caption-date  { font-size: 11px; font-weight: 700; color: #788596; font-family: monospace; }

/* ===================================================
   5. 影视海报墙 (#spot-posters)
   =================================================== */
.poster-wall-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #0f1115; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 48px; overflow: hidden; position: relative;
}
.projector-beam-effect {
  position: absolute; top: -20%; left: -10%; width: 120%; height: 140%;
  background: radial-gradient(ellipse at 0% 50%, rgba(255, 240, 200, 0.16) 0%, rgba(255, 240, 200, 0.05) 45%, transparent 75%);
  pointer-events: none; z-index: 5; mix-blend-mode: screen;
}
.poster-top-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid rgba(255, 255, 255, 0.1); padding-bottom: 8px; z-index: 10; }
.poster-top-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #a0aab8; }
.poster-row-grid-3 { display: flex; justify-content: center; gap: 28px; width: 100%; z-index: 10; }

.poster-card-item {
  width: 270px; height: 172px; border-radius: 6px; overflow: hidden; position: relative;
  cursor: pointer; border: none; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease; background: #1c1c1c;
}
.poster-card-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-card-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8); }
.poster-card-item.active { box-shadow: 0 0 0 2.5px #e5c07b, 0 16px 36px rgba(229, 192, 123, 0.35); transform: translateY(-5px) scale(1.02); }

.poster-center-quote-box {
  background: rgba(22, 26, 33, 0.92); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 14px 28px; margin: 4px auto; max-width: 820px; width: 100%; text-align: center;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); z-index: 10; backdrop-filter: blur(8px);
}
.quote-movie-title { font-size: 13.5px; font-weight: 800; color: #e5c07b; letter-spacing: 1px; }
.quote-en-text     { font-size: 15px; font-weight: 700; color: #ffffff; font-style: italic; letter-spacing: 0.3px; }
.quote-zh-text     { font-size: 13px; font-weight: 600; color: #9da5b4; }

.poster-side-arrow-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 80px;
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6); font-size: 26px; font-weight: 300; font-family: monospace, sans-serif;
  display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 50; transition: all 0.25s ease; border-radius: 8px;
}
.poster-side-arrow-btn:hover { background: rgba(229, 192, 123, 0.2); color: #e5c07b; border-color: rgba(229, 192, 123, 0.4); transform: translateY(-50%) scale(1.08); }
.poster-side-arrow-btn.left-btn  { left: 12px; }
.poster-side-arrow-btn.right-btn { right: 12px; }

/* ===================================================
   6. 个人电脑复古像素桌面 (#spot-laptop)
   =================================================== */
.retro-desktop-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/core/desktop.jpg') no-repeat center center; background-size: cover;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px; overflow: hidden;
  position: relative; font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.desktop-icons-col { display: flex; flex-direction: column; gap: 20px; z-index: 10; width: 90px; }
.retro-desktop-icon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px; border: 1px dotted transparent; border-radius: 4px; }
.retro-desktop-icon.clickable { cursor: pointer; }
.retro-desktop-icon.clickable:hover { background: rgba(0, 0, 128, 0.45); border-color: #dfdfdf; }
.retro-desktop-icon.decorative { cursor: default; }

.icon-glyph-box { font-size: 32px; line-height: 1; filter: drop-shadow(1px 1px 0 #000); }
.icon-label-text { color: #ffffff; font-size: 11px; font-weight: bold; margin-top: 5px; text-shadow: 1px 1px 2px #000; word-break: break-all; }

.retro-taskbar-bottom {
  height: 34px; background: #c0c0c0; border-top: 2px solid #ffffff; display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px; z-index: 100; border-bottom: 2px solid #404040;
}
.taskbar-start-btn {
  background: #c0c0c0; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff;
  padding: 2px 10px; font-size: 12px; font-weight: 900; color: #000; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.taskbar-start-btn:active { border-color: #404040 #ffffff #ffffff #404040; }
.taskbar-time-tray { border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; padding: 2px 8px; font-size: 11px; font-weight: bold; color: #000; }

.pixel-modal-window {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 720px; max-width: 95%; background: #c0c0c0; border: 2px solid; border-color: #dfdfdf #404040 #404040 #dfdfdf;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; z-index: 200;
}
.pixel-window-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0); height: 28px; padding: 0 6px 0 10px; display: flex; justify-content: space-between; align-items: center;
}
.titlebar-text { color: #ffffff; font-size: 12px; font-weight: bold; letter-spacing: 0.5px; }
.titlebar-close-btn {
  width: 18px; height: 18px; background: #c0c0c0; border: 1.5px solid; border-color: #ffffff #404040 #404040 #ffffff;
  font-size: 10px; font-weight: 900; color: #000; cursor: pointer; display: flex; justify-content: center; align-items: center;
}
.titlebar-close-btn:active { border-color: #404040 #ffffff #ffffff #404040; }
.pixel-window-menubar { display: flex; gap: 12px; padding: 4px 8px; border-bottom: 1px solid #808080; font-size: 11px; color: #000; }
.pixel-window-client-area { padding: 20px; background: #c0c0c0; max-height: 460px; overflow-y: auto; }

.about-client-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.about-photo-sunken { border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; background: #fff; padding: 4px; width: 200px; height: 260px; overflow: hidden; }
.about-photo-sunken img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-meta-col { display: flex; flex-direction: column; gap: 10px; }
.about-pixel-name  { font-size: 18px; font-weight: 900; color: #000080; }
.about-pixel-title { font-size: 11px; font-weight: bold; color: #404040; }
.about-sunken-textbox { background: #ffffff; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; padding: 10px; font-size: 12px; line-height: 1.7; color: #000; }
.about-pixel-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pixel-btn-link {
  background: #c0c0c0; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff;
  padding: 8px 10px; font-size: 11.5px; font-weight: bold; text-decoration: none; color: #000; display: flex; align-items: center; gap: 8px; cursor: default;
}
.pixel-btn-link.is-clickable { cursor: pointer; }
.pixel-btn-link.is-clickable:hover { background: #dcdcdc; }
.pixel-btn-link:active { border-color: #404040 #ffffff #ffffff #404040; }

.gb-client-layout { display: flex; flex-direction: column; gap: 10px; }
.gb-sunken-board { background: #ffffff; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; height: 200px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.gb-msg-item { font-size: 11.5px; border-bottom: 1px dashed #c0c0c0; padding-bottom: 4px; }
.gb-msg-user { font-weight: bold; color: #000080; }
.gb-msg-time { font-size: 9.5px; color: #808080; margin-left: 6px; }
.gb-msg-body { margin-top: 2px; color: #000; line-height: 1.4; }
.gb-input-controls { display: flex; gap: 6px; align-items: center; }
.pixel-text-input { background: #ffffff; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; padding: 4px 6px; font-size: 11.5px; outline: none; }
.pixel-name-input { width: 110px; }
.pixel-msg-input { flex: 1; }
.pixel-submit-btn { background: #c0c0c0; border: 2px solid; border-color: #ffffff #404040 #404040 #ffffff; padding: 4px 14px; font-size: 11.5px; font-weight: bold; color: #000; cursor: pointer; }
.pixel-submit-btn:active { border-color: #404040 #ffffff #ffffff #404040; }

/* ===================================================
   ===================================================
   7. 实体老相册时光影集 (#spot-album · 响应式窗口缩放)
   =================================================== */
.pure-album-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #231812; display: flex; justify-content: center; align-items: center;
  padding: clamp(8px, 2vw, 24px); overflow: hidden;
}

.pure-album-spread-book {
  position: relative;
  /* 按容器 contain 适配：铺满容器宽（或高），保持 1060:600 比例不溢出。
     之前用 100vw/100vh 计算，在弹窗被 ModalFit 缩放后设计坐标系错乱，
     导致相册与弹窗比例失调（相册远小于弹窗）。 */
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1060 / 600;
  background: #eae2d0; border-radius: 8px;
  box-shadow: 
    0 1px 0 #d8ceb8,
    0 3px 0 #c8beaa,
    0 5px 0 #b8ae9a,
    0 8px 0 #a89e8a,
    0 24px 70px rgba(0,0,0,0.7);
  display: flex; border: 6px solid #1c130d;
  border-bottom: 12px solid #1c130d;
  box-sizing: border-box;
}

/* 中缝：横向穿透金属活页环 */
.album-binder-rings-column {
  position: absolute; top: 0; bottom: 0; left: 50%; width: clamp(30px, 5.5%, 56px); transform: translateX(-50%);
  display: flex; flex-direction: column; justify-content: space-around; align-items: center;
  z-index: 60; pointer-events: none;
}
.horizontal-binder-ring {
  position: relative; width: 100%; height: clamp(8px, 1.6vw, 16px);
  background: linear-gradient(to bottom, #8a7b68 0%, #e6cb85 45%, #ffffff 55%, #6a5d4d 100%);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.65), inset 0 1px 2px rgba(255,255,255,0.8);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2px;
}
.horizontal-binder-ring::before,
.horizontal-binder-ring::after {
  content: ''; position: absolute; width: clamp(6px, 0.95vw, 10px); height: clamp(6px, 0.95vw, 10px);
  border-radius: 50%; background: #120c08;
  box-shadow: inset 0 2px 4px #000, 0 1px 2px rgba(255,255,255,0.4);
  top: 50%; transform: translateY(-50%);
}
.horizontal-binder-ring::before { left: -7px; }
.horizontal-binder-ring::after  { right: -7px; }

/* 左右分栏：允许弹性缩小 */
.album-spread-half {
  flex: 1; width: 50%; height: 100%;
  padding: clamp(8px, 2.4vw, 24px);
  display: flex; justify-content: center; align-items: center;
  position: relative; box-sizing: border-box;
  min-width: 0; min-height: 0;
}
.album-spread-half.left-spread  { border-right: 2px dashed rgba(0,0,0,0.12); }
.album-spread-half.right-spread { border-left: 2px dashed rgba(0,0,0,0.12); }

/* 统一网格：弹性 2×2 */
.photo-matrix-2x2 {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.3vw, 14px);
}

/* 相片卡片：精致纸质白边 + contain 完整显示 */
.album-photo-card {
  position: relative; width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  background: #ffffff; padding: clamp(3px, 0.5vw, 6px);
  box-shadow: 0 4px 10px rgba(40, 30, 20, 0.18);
  outline: 1px solid #e2dac8;
  box-sizing: border-box;
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
}
.album-photo-card img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 翻页微翘折角感应区 */
.page-curl-corner {
  position: absolute; bottom: 0; cursor: pointer; z-index: 50;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.left-curl-corner {
  left: 0; width: clamp(24px, 3.5vw, 36px); height: clamp(24px, 3.5vw, 36px);
}
.left-curl-corner:hover {
  width: clamp(40px, 5.5vw, 56px); height: clamp(40px, 5.5vw, 56px);
  background: linear-gradient(45deg, #1c130d 0%, #1c130d 48%, #eae2d0 50%, #eae2d0 100%);
  border-top-right-radius: 4px; box-shadow: 6px -6px 14px rgba(0,0,0,0.25);
}
.right-curl-corner {
  right: 0; width: clamp(14px, 2vw, 22px); height: clamp(14px, 2vw, 22px);
  background: linear-gradient(-45deg, #1c130d 0%, #1c130d 48%, #eae2d0 50%, #eae2d0 100%);
  border-top-left-radius: 3px; box-shadow: -2px -2px 6px rgba(0,0,0,0.12);
}
.right-curl-corner:hover {
  width: clamp(48px, 6.5vw, 68px); height: clamp(48px, 6.5vw, 68px);
  box-shadow: -8px -8px 18px rgba(0,0,0,0.3);
}
/* ===================================================
   8. 实体书架 (#spot-books)
   =================================================== */
.bookshelf-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #231b15; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 40px; overflow: hidden;
}
.bookshelf-top-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px dashed #423226; padding-bottom: 10px; }
.bookshelf-title { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: #b89c7d; }
.bookshelf-upper-deck { flex: 1; display: flex; justify-content: center; align-items: center; margin: 12px 0; }
.silent-hint-text { font-size: 14px; font-weight: 600; color: #5a4637; letter-spacing: 2px; font-style: italic; }
.extracted-quote-card {
  background: #fdfaf5; border-radius: 16px; padding: 28px 36px; max-width: 720px; width: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 12px;
  border: 1px solid #e2d7c5; animation: cardFadeIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.extracted-book-meta  { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed #dcd0bc; padding-bottom: 8px; }
.extracted-book-title { font-size: 17px; font-weight: 900; color: #3b281c; }
.extracted-book-author{ font-size: 13px; font-weight: 700; color: #8c7355; }
.extracted-quote-body { font-size: 15.5px; line-height: 1.8; color: #4a382c; font-weight: 600; letter-spacing: 0.5px; text-align: justify; }

.bookshelf-rack-shelf { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding-bottom: 16px; }
.bookshelf-plank-beam {
  position: absolute; bottom: 0; left: -20px; right: -20px; height: 16px;
  background: linear-gradient(to bottom, #4a3628 0%, #2f2117 100%); border-top: 3px solid #6b4e3a; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.book-spine-unit {
  position: relative; width: 44px; height: 210px; border-radius: 4px 4px 0 0; display: flex; flex-direction: column;
  justify-content: space-between; align-items: center; padding: 16px 4px; cursor: pointer; z-index: 10;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.35), 3px 0 8px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); border: 1px solid rgba(255,255,255,0.08); border-bottom: none;
}
.book-spine-unit:hover { transform: translateY(-10px); }
.book-spine-unit.pulled-out { transform: translateY(-26px); box-shadow: inset -3px 0 6px rgba(0,0,0,0.35), 0 16px 28px rgba(0,0,0,0.45); }
.spine-title-vertical { writing-mode: vertical-rl; text-orientation: mixed; font-size: 13.5px; font-weight: 900; letter-spacing: 3px; color: #dfcaa7; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.spine-author-sub     { writing-mode: vertical-rl; font-size: 9.5px; font-weight: 700; color: rgba(223, 202, 167, 0.65); letter-spacing: 1px; }
.spine-emboss-line    { width: 70%; height: 2px; background: rgba(223, 202, 167, 0.3); }

/* =================================================
   人生体验页：自适应、不裁切背景、文字不换行
   ================================================= */

.journal-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: clamp(12px, 3vw, 30px) clamp(14px, 4vw, 40px);
  overflow: hidden;

  /*
   * contain 会完整显示背景，不会裁切。
   * 如果 app.js 通过 style.backgroundImage 设置背景，
   * !important 可以确保这里的规则生效。
   */
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  background-color: #f4edb8;
}

.journal-split-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

/* 左侧文字区域加宽，避免中文被挤成一列 */
.journal-left-column {
  flex: 0 0 46%;
  width: 46%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  padding: 0 clamp(4px, 2vw, 20px);
}

.journal-items-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}

.journal-row-item {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.item-left-block {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  text-align: right;
}

/* 圆形按钮不被挤扁 */
.item-check-circle {
  flex: 0 0 auto;
}

/* 文字禁止换行，并随窗口缩小 */
.item-title-text {
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;

  font-size: clamp(10px, 1.7vw, 16.5px);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* 右侧文案区域 */
.journal-right-column {
  flex: 1 1 54%;
  width: 54%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(6px, 2vw, 30px);
  text-align: center;
}

.journal-motto-poster {
  max-width: 380px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;

  font-size: clamp(14px, 3.2vw, 32px);
  line-height: 1.45;
  letter-spacing: clamp(1px, 0.35vw, 3.5px);
}

/* ===================================================
   0c. 移动端建议横幅（不拦截）
   仅触屏设备由 JS 控制显示；横竖屏均可正常浏览，8 秒后自动收起
   =================================================== */
.browser-hint-bar {
  position: fixed;
  top: 16px;                          /* 放在欢迎页面上方 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;                      /* 盖在欢迎门(z-index 2000)之上 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 94vw;
  box-sizing: border-box;
  background: none;                   /* 去掉背景框：纯文字悬浮 */
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.browser-hint-bar .bh-text {
  font-family: "ZCOOL KuaiLe", -apple-system, "PingFang SC", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #f5e6c8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.browser-hint-bar .bh-close {
  background: none;
  border: none;
  color: rgba(245, 230, 200, 0.55);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.browser-hint-bar .bh-close:hover { color: #f5e6c8; }
.browser-hint-bar.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  pointer-events: none;
}

/* ===================================================
   0d. 房间顶部英文引导语
   =================================================== */
.room-top-hint {
  position: absolute;               /* 挂在 room-stage 内，跟随房间图，任何屏宽都压在图上 */
  top: 8%;                          /* 房间图顶部往下 8%（图内区域） */
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  pointer-events: none;
  width: 80%;
  text-align: center;
  white-space: normal;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: clamp(11px, 2.6vw, 20px);
  letter-spacing: 1.5px;
  line-height: 1.4;
  color: #33261b;                   /* 深色：压在浅色房间图上更显眼 */
  text-shadow: 0 1px 6px rgba(255, 246, 228, 0.7);
  opacity: 0;
  animation: topHintFadeIn 1.6s ease 1.2s forwards;
}
@keyframes topHintFadeIn { to { opacity: 0.92; } }
@media (prefers-reduced-motion: no-preference) {
  .room-top-hint {
    animation:
      topHintFadeIn 1.6s ease 1.2s forwards,
      topHintFloat 3.6s ease-in-out 3.2s infinite alternate;
  }
}
@keyframes topHintFloat {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(-4px); }
}

/* ===================================================
   全局弹窗适配（手机 / 平板）：参照电脑模式的比例
   桌面上弹窗 = min(94vw, 1100px) × min(88vh, 740px)，四周留边的圆角卡片。
   小屏时 JS 给弹窗加 .modal-fit-scaled：固定为设计尺寸 1100×740，
   再用 transform 整体等比缩放——弹窗在屏幕中的占比与桌面观感一致，
   不铺满、不裁切（transform 兼容性远优于 zoom，微信内核也稳定）。
   =================================================== */
.cozy-modal-backdrop { overflow: hidden; }
.cozy-modal-box.modal-fit-scaled {
  width: 1100px;
  height: 740px;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;   /* 防止被 flex 容器反向压缩，保证按 1100×740 精确缩放 */
  transform-origin: center center;
}

/* ===================================================
   移动端小屏：右上角头像与折角彩蛋按桌面一半缩小
   手机竖屏下房间较小，44px 头像 / 260px 彩蛋占比过大，故减半
   =================================================== */
@media (max-width: 560px) {
  .home-avatar-dock { top: 14px; right: 16px; gap: 10px; }
  .sticker-avatar-wrap, .sticker-img { height: 22px; }
  .room-peel-corner.peeled, .peel-secret-content { width: 130px; height: 130px; }
}

/* ===================================================
   触摸屏专属：细腻慢速呼吸微光点 (方案 A 优化版)
   =================================================== */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .soft-spot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 尺寸缩小一半：由 10px 变为 5px */
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff6d6;
    /* 光晕范围等比例缩小 */
    box-shadow: 
      0 0 4px 1.5px rgba(255, 230, 150, 0.9),
      0 0 9px 4px rgba(255, 200, 100, 0.45);
    pointer-events: none;
    /* 呼吸周期慢 2 倍：由 2.4s 延长为 4.8s */
    animation: spotBreathe 4.8s infinite ease-in-out;
  }

  /* 错峰间隔拉大（步长由 0.3s 提升至 0.6s，均匀分布在 4.8s 周期内） */
  #spot-map::after     { animation-delay: 0.0s; }
  #spot-posters::after { animation-delay: 0.6s; }
  #spot-player::after  { animation-delay: 1.2s; }
  #spot-books::after   { animation-delay: 1.8s; }
  #spot-laptop::after  { animation-delay: 2.4s; }
  #spot-camera::after  { animation-delay: 3.0s; }
  #spot-journal::after { animation-delay: 3.6s; }
  #spot-album::after   { animation-delay: 4.2s; }
}

@keyframes spotBreathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.85;
  }
}
