/* ==========================================================================
   蛋宝宝 · 破壳起居室与专属试衣间（1:1 复刻 eggbabe-miniprogram 样式体系）
   换算基准：750rpx = 375px（2rpx = 1px）；全局 PingFang SC 最高字重 600（禁 700/bold）
   ========================================================================== */
:root {
  --ink: #002900;
  --ink-pressed: #001A00;
  --forest-title: #35483C;
  --text: #1A1A1A;
  --text-muted: #5A675E;
  --text-faint: #8C8C88;
  --canvas: #FAFAF8;
  --hairline: #E5E3DF;
  --error: #D9463C;
  --egg-green: #819A54;
  --pano-scale: 0.5;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --wx-capsule-top: 12px;
  --wx-capsule-bottom: 0px;
  --wx-capsule-right-pad: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #EEE8DB;
  color: #28332B;
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}
button:active {
  transform: scale(0.98);
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #EEE8DB;
}

/* ---------- 标准胶囊按钮（复刻 miniprogram/components/button/button.wxss） ---------- */
.btn {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.btn-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.btn--primary {
  background: #002900;
}
.btn--primary .btn-text {
  color: #FFFFFF;
}
.btn--secondary-soft {
  background: transparent;
  border: 1.5px solid rgba(0, 41, 0, 0.24);
}
.btn--secondary-soft .btn-text {
  color: #002900;
}
.btn--disabled, .btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn--small {
  height: 40px;
  padding: 0 18px;
}
.btn--small .btn-text {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 1. 右上隐藏验收工具栈（DEV-ONLY） ---------- */
.stage-tester {
  position: fixed;
  z-index: 92;
  right: 14px;
  width: 108px;
}
.acceptance-stack {
  position: fixed;
  z-index: 91;
  right: 14px;
  top: calc(50px + var(--safe-top));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.tester-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stage-tester-button,
.scene-tester-button,
.companion-state-tester-button,
.prototype-tester-button,
.mood-tester-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(225, 229, 215, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 4.5px 13px rgba(44, 54, 39, 0.14);
  color: #3F5543;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}
.stage-tester-tag,
.scene-tester-tag,
.companion-state-tester-tag,
.prototype-tester-tag,
.mood-tester-tag {
  padding: 2px 5px;
  border-radius: 5px;
  background: #EDF2E3;
  color: #71834F;
  font-size: 10px;
}
.stage-tester-chevron,
.scene-tester-chevron,
.companion-state-tester-chevron,
.prototype-tester-chevron,
.mood-tester-chevron {
  margin-top: -2px;
  color: #829073;
  font-size: 11px;
}
.scene-tester-menu,
.companion-state-tester-menu,
.prototype-tester-menu,
.mood-tester-menu {
  width: 158px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 5px;
  padding: 4px;
  border: 1px solid rgba(225, 229, 215, 0.96);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 8px 20px rgba(44, 54, 39, 0.18);
  backdrop-filter: blur(6px);
}
.tester-option {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 999px;
  color: #586458;
  font-size: 11px;
}
.tester-option--active {
  background: #EEF3E5;
  color: #36513C;
  font-weight: 600;
}

/* ---------- 2. 中场 34vh 双层场景反馈栈（复刻 scene-feedback-stack.wxss） ---------- */
.scene-feedback-stack {
  position: fixed;
  z-index: 86;
  left: 24px;
  right: 24px;
  top: 34vh;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.98);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  pointer-events: none;
}
.scene-feedback-stack--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.page.is-fitting .scene-feedback-stack {
  top: calc(60px + var(--safe-top));
}
.scene-feedback-stack__back {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  max-width: min(310px, calc(100vw - 48px));
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(18, 21, 18, 0.72);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  transform: translate3d(-50%, 6px, 0) scale(0.96);
  opacity: 0.56;
  backdrop-filter: blur(6px);
}
.scene-feedback-stack__card {
  position: relative;
  z-index: 1;
  max-width: min(310px, calc(100vw - 48px));
  text-align: center;
}
.scene-feedback-stack__card--dialogue {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 6px 18px rgba(0, 41, 0, 0.10);
  color: #3D4930;
  font-size: 12px;
  line-height: 1.5;
  backdrop-filter: blur(6px);
}
.scene-feedback-stack__card--system {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(18, 21, 18, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(6px);
}
.scene-feedback-stack__card--warning {
  background: rgba(39, 27, 23, 0.78);
}

/* ---------- 3. 左上状态栈：精简常驻版陪伴星星牌 + 双模小挂钟 ---------- */
.life-status-stack {
  position: fixed;
  z-index: 84;
  left: 12px;
  top: max(calc(12px + env(safe-area-inset-top, 0px)), var(--wx-capsule-top, 12px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.pet-mood-anchor {
  pointer-events: auto;
}
.pet-mood-tab--post-hatch {
  width: max-content;
  min-width: 176px;
  max-width: 214px;
  padding: 10px 12px;
  border: 1.5px solid rgba(164, 134, 98, 0.28);
  border-radius: 16px;
  background: rgba(252, 248, 239, 0.93);
  box-shadow: 0 4px 12px rgba(74, 52, 30, 0.10), inset 0 1px 0 rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform-origin: left top;
}
.pet-mood-tab__room-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pet-mood-tab__star-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pet-mood-tab__star-value {
  color: #35483C;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.pet-mood-tab__star-gain {
  color: #B98220;
  font-size: 12px;
  font-weight: 600;
  animation: star-gain-pop 0.95s ease-out both;
}
@keyframes star-gain-pop {
  0% { opacity: 0; transform: translateY(5px) scale(0.85); }
  28% { opacity: 1; transform: translateY(-1px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-9px) scale(0.95); }
}
.pet-mood-tab__room-detail {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(53, 72, 60, 0.09);
}
.pet-mood-tab__pet-name {
  display: block;
  color: #002900;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pet-mood-tab__mood-inline {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pet-mood-tab__mood-prefix {
  color: #748078;
  font-size: 10.5px;
}
.pet-mood-tab__mood-emoji {
  font-size: 12px;
  line-height: 1;
}
.pet-mood-tab__mood-name {
  color: #31463A;
  font-size: 11px;
  font-weight: 600;
}
.pet-mood-tab__chevron {
  margin-left: auto;
  color: #8A968C;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.pet-mood-tab__care-row {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(53, 72, 60, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  line-height: 1.2;
  color: #4A5A50;
}
.pet-mood-tab__care-item {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  flex: 1 1 0;
  min-width: 0;
}
.pet-mood-tab__care-text {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pet-mood-tab__care-text b {
  font-weight: 600;
  color: #35483C;
}
.pet-mood-tab__care-track {
  display: block;
  width: 100%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(53, 72, 60, 0.11);
  overflow: hidden;
}
.pet-mood-tab__care-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #6E8B57;
  transition: width 0.28s ease, background-color 0.25s ease;
}
.pet-mood-tab__care-sep {
  color: rgba(53, 72, 60, 0.28);
  align-self: flex-start;
  line-height: 1.1;
}
.pet-mood-tab__care-item.is-warning .pet-mood-tab__care-text,
.pet-mood-tab__care-item.is-warning .pet-mood-tab__care-text b {
  color: #D96B52;
}
.pet-mood-tab__care-item.is-warning .pet-mood-tab__care-fill {
  background: #D96B52;
  animation: care-warn-pulse 1.8s ease-in-out infinite;
}
@keyframes care-warn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.52; }
}
@media (max-width: 359px) {
  .pet-mood-tab__days-prefix {
    display: none;
  }
}

/* 哑光陪伴星星组件（复刻 companion-star.wxss） */
.companion-star {
  position: relative;
  display: inline-block;
  flex: none;
  pointer-events: none;
}
.companion-star--room {
  width: 17px;
  height: 17px;
}
.companion-star--award {
  width: 75px;
  height: 75px;
}
.companion-star__body,
.companion-star__pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 62%;
}
.companion-star__pose--squeezed {
  opacity: 0;
}
.companion-star__halo {
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 221, 121, 0.95) 0, rgba(247, 204, 110, 0.5) 34%, rgba(243, 187, 90, 0) 70%);
}
.companion-star--room .companion-star__halo {
  animation: companion-star-breathe 3.8s ease-in-out infinite;
}
.companion-star--room.companion-star--pulse .companion-star__halo {
  animation: companion-star-room-pulse 1.2s ease-out both;
}
.companion-star__dust, .companion-star__spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: #FFE7A3;
  box-shadow: 0 0 3px rgba(255, 221, 121, 0.75);
}
.companion-star__dust { width: 2px; height: 2px; }
.companion-star--pulse .companion-star__dust--1 { left: 72%; top: 18%; animation: star-dust 0.8s ease-in both; }
.companion-star--pulse .companion-star__dust--2 { left: 26%; top: 14%; animation: star-dust 0.8s ease-in 0.12s both; }
.companion-star--pulse .companion-star__dust--3 { left: 82%; top: 36%; animation: star-dust 0.8s ease-in 0.24s both; }

.companion-star--award .companion-star__body { animation: companion-star-enter 2s linear both; }
.companion-star--award .companion-star__pose--neutral { animation: companion-star-neutral-shape 2s cubic-bezier(0.22, 1, 0.36, 1) both, companion-star-neutral-show 2s step-end both; }
.companion-star--award .companion-star__pose--squeezed { animation: companion-star-squeezed-shape 2s ease-in-out both, companion-star-squeezed-show 2s step-end both; }
.companion-star--award .companion-star__halo { animation: companion-star-award-halo 2s ease-out both; }
.companion-star__spark--1 { left: -10px; top: 35px; width: 3px; height: 3px; animation: star-rise 1s ease-out 0.72s both; }
.companion-star__spark--2 { left: 15px; top: 10px; width: 3px; height: 3px; animation: star-rise 0.95s ease-out 0.78s both; }
.companion-star__spark--3 { left: 59px; top: 14px; width: 3px; height: 3px; animation: star-rise 0.9s ease-out 0.84s both; }
.companion-star__spark--4 { left: -4px; top: 56px; width: 3px; height: 3px; animation: star-rise 1s ease-out 0.9s both; }
.companion-star__spark--5 { left: 38px; top: 2px; width: 4px; height: 4px; animation: star-rise 0.95s ease-out 0.96s both; }
.companion-star__spark--6 { left: 78px; top: 42px; width: 3px; height: 3px; animation: star-rise 0.9s ease-out 1.02s both; }
.companion-star__spark--7 { left: 23px; top: 64px; width: 3px; height: 3px; animation: star-rise 1s ease-out 1.08s both; }

@keyframes companion-star-breathe { 0%, 100% { opacity: 0.06; } 50% { opacity: 0.18; } }
@keyframes companion-star-room-pulse { 0% { opacity: 0.06; transform: scale(1); } 20% { opacity: 0.46; transform: scale(1.14); } 100% { opacity: 0.06; transform: scale(1); } }
@keyframes star-dust { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 0.45; } 100% { opacity: 0; transform: translateY(9px); } }
@keyframes star-rise { 0% { opacity: 0; transform: translateY(0) scale(0.55); } 24% { opacity: 0.4; transform: translateY(-5px) scale(0.95); } 100% { opacity: 0; transform: translateY(-22px) scale(0.65); } }
@keyframes companion-star-enter { 0% { opacity: 0; transform: scale(0.86); } 12%, 100% { opacity: 1; transform: scale(1); } }
@keyframes companion-star-neutral-shape {
  0% { transform: scale(0.88, 0.88); }
  12%, 24% { transform: scale(1, 1); }
  35% { transform: scale(0.84, 1.06); }
  42% { transform: translateY(-14%) scale(1.18, 1.1); }
  52% { transform: translateY(-4%) scale(1.06, 1.04); }
  62% { transform: scale(0.96, 0.98); }
  72% { transform: scale(1.03, 1.02); }
  100% { transform: scale(1, 1); }
}
@keyframes companion-star-neutral-show { 0% { opacity: 1; } 24% { opacity: 0; } 35%, 100% { opacity: 1; } }
@keyframes companion-star-squeezed-shape {
  0%, 24% { transform: scale(1.174, 1.05); }
  30% { transform: translateY(2%) scale(1.12, 1.08); }
  35%, 100% { transform: scale(1.105, 1.061); }
}
@keyframes companion-star-squeezed-show { 0% { opacity: 0; } 24% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes companion-star-award-halo {
  0% { opacity: 0; transform: scale(0.72); }
  38% { opacity: 0.28; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes scene-fab-bounce {
  0% { transform: scale3d(1, 1, 1); }
  22% { transform: scale3d(0.92, 0.92, 1); }
  72% { transform: scale3d(1.06, 1.06, 1); }
  100% { transform: scale3d(1, 1, 1); }
}
.is-rebounding {
  animation: scene-fab-bounce 0.36s ease-out both;
}

/* ---------- 4. 三屏连续全景画卷、全模组化拆层（Modular Scene Rig）与 WebGL/微距道具层 ---------- */
.scene-stage {
  position: absolute;
  inset: 0;
}
.world-scroll {
  width: 100vw;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.world-scroll::-webkit-scrollbar {
  display: none;
}
.page.is-bathing .world-scroll {
  overflow-x: hidden;
  touch-action: none;
}
.page.is-bathing .pano-box {
  touch-action: none;
}
.world-track {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(160deg, #F7EEDC, #D9C7A8);
}
.camera-rig {
  position: absolute;
  inset: 0;
  transform-origin: 50% 56%;
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.pano-box {
  position: absolute;
  transform-origin: 0 0;
}
.world-panorama-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
}
.world-panorama-bg--previous {
  z-index: 1;
}
.world-panorama-bg--previous-fading {
  animation: environment-crossfade-out 0.52s ease-out both;
}
.world-panorama-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@keyframes environment-crossfade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 全站图片统一加载护栏：未完全解码前严禁露出裂图图标或 alt 占位文字 */
img[data-eb-img="loading"],
img[data-eb-img="error"] {
  opacity: 0 !important;
  color: transparent !important;
}
img[data-eb-img="ready"] {
  transition: opacity 0.22s ease;
}

/* 墙面微缩拍立得（哑光暖相纸 + 昼/黄昏/开灯夜/关灯夜光影自适应，自然融入墙面） */
.wall-polaroid {
  position: absolute;
  z-index: 9;
  padding: 3px 3px 9px;
  background: linear-gradient(155deg, #F3EBDC 0%, #E7DCC8 100%);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(48, 36, 22, 0.18), 0 1px 1px rgba(48, 36, 22, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-3.5deg);
  transition: filter 0.4s ease, opacity 0.35s ease, box-shadow 0.4s ease;
  filter: brightness(0.95) saturate(0.86) sepia(0.08);
}
.wall-polaroid.is-ready {
  opacity: 1;
}
.wall-polaroid__pin {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D29A63, #7D4F28);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
.wall-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5px;
  filter: contrast(0.94) saturate(0.90);
}
.page[data-period="sunset"] .wall-polaroid {
  filter: brightness(0.88) sepia(0.18) saturate(0.86);
}
.page[data-period="night"][data-lamp-lit="true"] .wall-polaroid {
  filter: brightness(0.74) sepia(0.24) saturate(0.82) contrast(0.95);
  box-shadow: 0 2px 7px rgba(24, 16, 8, 0.34);
}
.page[data-period="night"][data-lamp-lit="false"] .wall-polaroid {
  filter: brightness(0.45) saturate(0.58) contrast(0.92) hue-rotate(-6deg);
  box-shadow: 0 2px 8px rgba(10, 14, 24, 0.45);
}

/* 微距实拍道具贴片（z: 4：黑猫警长发条钟 + 原木小立镜 + 叠放针织衣包） */
.macro-prop {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 7px rgba(42, 28, 16, 0.24));
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.35s ease;
}
.macro-prop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.macro-prop:hover {
  transform: translate(-50%, -52%) scale(1.03);
}

/* 脚底软阴影（z: 4）与 WebGL 宠物层（z: 5，位于前景被子层 z: 6 之下） */
.pet-shadow {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  transition: opacity 0.24s ease;
}
.pet-shadow--soft {
  background: radial-gradient(ellipse at center, rgba(72, 46, 24, 0.28) 0%, rgba(72, 46, 24, 0) 72%);
}
.pet-shadow--contact {
  background: radial-gradient(ellipse at center, rgba(52, 32, 16, 0.42) 0%, rgba(52, 32, 16, 0) 68%);
}
.gl-pet {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.page.is-baked-action .gl-pet,
.page.is-baked-action .pet-shadow,
.page.is-baked-action .sleep-zz,
.page.is-night-sleeping .gl-pet,
.page.is-night-sleeping .pet-shadow,
.page.is-night-sleeping .sleep-zz,
.page[data-state="away"] .gl-pet,
.page[data-state="away"] .pet-shadow,
.page[data-state="away"] .sleep-zz {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.pet-sleep-sprite {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.32s ease, filter 0.35s ease;
}
.pet-sleep-sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pet-sleep-sprite.is-waking-pat {
  transform-origin: 50% 62%;
  animation: sleepPatSquish 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pet-sleep-sprite.is-waking-fade {
  opacity: 0 !important;
  transform: translate3d(0, -10px, 0) scale(0.96);
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}
.gl-pet.is-waking-arrive {
  animation: petWakeArrive 0.38s cubic-bezier(0.22, 1.38, 0.45, 1) both;
}
@keyframes sleepPatSquish {
  0% { transform: scale3d(1, 1, 1); }
  38% { transform: scale3d(1.045, 0.945, 1) translate3d(0, 5px, 0); }
  75% { transform: scale3d(0.985, 1.025, 1) translate3d(0, -3px, 0); }
  100% { transform: scale3d(1, 1, 1); }
}
@keyframes petWakeArrive {
  0% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.88); }
  62% { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.03); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.module-hotspot--sleep-pet {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}
.sleep-pat-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.92);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.module-hotspot--sleep-pet.is-guided .sleep-pat-hint {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.sleep-pat-hint__ring {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255, 244, 214, 0.85);
  box-shadow: 0 0 18px rgba(255, 224, 152, 0.45);
  animation: sleepPatPulse 1.35s ease-out infinite;
}
.sleep-pat-hint__pill {
  position: relative;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(252, 248, 239, 0.94);
  border: 1.5px solid rgba(164, 134, 98, 0.34);
  color: #4a3726;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(34, 24, 14, 0.26);
}
@keyframes sleepPatPulse {
  0% { transform: scale(0.76); opacity: 0.9; }
  100% { transform: scale(1.48); opacity: 0; }
}

.fitting-vignette {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 60%, transparent 22%, rgba(26, 20, 14, 0.26) 85%);
  transition: opacity 0.38s ease;
}
.page.is-fitting .fitting-vignette {
  opacity: 1;
}

.scene-hit-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}
.scene-hit-layer > button {
  pointer-events: auto;
}
.scene-character-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 50%;
}
.action-glow {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.action-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 181, 0.82), rgba(255, 248, 181, 0.18) 52%, transparent 74%);
  animation: action-breathe 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes action-breathe {
  0%, 100% { opacity: 0.38; transform: scale(0.86); }
  50% { opacity: 0.86; transform: scale(1.08); }
}

.desk-ripple {
  position: absolute;
  width: 34px;
  height: 20px;
  border: 1.5px solid rgba(255, 250, 232, 0.82);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  animation: desk-ripple-out 0.55s ease-out forwards;
}
@keyframes desk-ripple-out {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}

/* ---------- 5. 顶中三屏圆点 + 底部立体 3D 圆钮与百宝箱 ---------- */
.screen-dots {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: calc(59px + var(--safe-top));
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.screen-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: width 0.22s ease, background-color 0.22s ease;
}
.screen-dot--active {
  width: 14px;
  background: #FFFFFF;
}

.scene-context-entry {
  position: fixed;
  z-index: 26;
  left: 12px;
  bottom: calc(12px + var(--safe-bottom));
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.scene-action-dock {
  position: fixed;
  z-index: 26;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.scene-action-dock--toolbox-open {
  z-index: 102;
}
.scene-action-button {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 254, 249, 0.97), rgba(230, 235, 224, 0.96));
  box-shadow: 0 5.5px 12.5px rgba(34, 45, 36, 0.18), inset 0 1.5px 2px rgba(255, 255, 255, 0.94), inset 0 -2px 4px rgba(96, 112, 91, 0.10);
}
.scene-action-button--flat-envelope {
  background: #F4F5EC;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 8px rgba(34, 45, 36, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.90);
}
.scene-action-icon-image {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2.5px 2.5px rgba(57, 65, 50, 0.16));
}
.scene-action-icon-image--wardrobe {
  width: 40px;
  height: 40px;
}
.scene-action-icon-image--companion {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  filter: none;
}
.scene-action-icon-image--flat-envelope {
  width: 36px;
  height: 36px;
  padding: 4px;
  background: #F4F5EC;
}
.scene-action-icon-image--companion-chat {
  width: 44px;
  height: 44px;
  object-fit: cover;
}
.companion-unread-dot {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D9463C;
}
.companion-letter-plane {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 16px;
  top: 15px;
  background: #FFF9EB;
  clip-path: polygon(0 32%, 100% 0, 65% 100%, 45% 58%);
  animation: companion-letter-plane 1s ease-out both;
  pointer-events: none;
}
.companion-letter-envelope--arriving {
  animation: companion-letter-envelope 1s ease-out both;
}
@keyframes companion-letter-plane {
  0% { opacity: 1; transform: scale(0.92); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.98); }
}
@keyframes companion-letter-envelope {
  0%, 35% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* 百宝箱弹簧浮层（1:1 复刻 companion-toolbox） */
.companion-toolbox-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.toolbox-dismiss {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
}
.companion-toolbox {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 101;
  min-width: 164px;
  pointer-events: none;
}
.companion-toolbox--open,
.companion-toolbox--opening {
  pointer-events: auto;
}
.companion-toolbox__motion {
  transform-origin: 100% 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(164, 134, 98, 0.28);
  border-radius: 16px;
  background: rgba(252, 248, 239, 0.96);
  box-shadow: 0 6px 18px rgba(74, 52, 30, 0.14);
  opacity: 0;
  transform: scale3d(0.88, 0.88, 1);
}
.companion-toolbox--opening .companion-toolbox__motion {
  animation: toolbox-panel-open 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s both;
}
.companion-toolbox--open .companion-toolbox__motion {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}
.companion-toolbox--closing .companion-toolbox__motion {
  animation: toolbox-panel-close 0.16s ease-in both;
}
@keyframes toolbox-panel-open {
  0% { opacity: 0; transform: scale3d(0.88, 0.88, 1); }
  71% { opacity: 1; transform: scale3d(1.03, 1.03, 1); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes toolbox-panel-close {
  from { opacity: 1; transform: scale3d(1, 1, 1); }
  to { opacity: 0; transform: scale3d(0.9, 0.9, 1); }
}
.companion-toolbox__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}
.companion-toolbox__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 12px;
  color: #35483C;
  min-height: 56px;
  min-width: 58px;
}
.companion-toolbox__item > span:last-child {
  white-space: nowrap;
}
.companion-toolbox__icon-wrap {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}
.companion-toolbox__item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.companion-toolbox__activity-icon {
  transform: scale(1.25);
}
.companion-toolbox-button__motion {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.companion-toolbox-button__icons {
  position: relative;
  width: 42px;
  height: 42px;
}
.companion-toolbox-button__lid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.companion-toolbox-button__lid--visible {
  opacity: 1;
}

/* ---------- 6. 专属试衣间顶栏与 #FAFAF8 衣橱抽屉 ---------- */
.page.is-fitting .life-status-stack,
.page.is-fitting .screen-dots,
.page.is-fitting .scene-context-entry,
.page.is-fitting .scene-action-dock,
.page.is-fitting .dev-testers,
.page.is-fitting .macro-prop--mirror {
  opacity: 0;
  pointer-events: none !important;
}

.fitting-topbar {
  position: fixed;
  z-index: 94;
  left: 12px;
  right: 12px;
  top: calc(10px + var(--safe-top));
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.page.is-fitting .fitting-topbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-circle-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(225, 229, 215, 0.95);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 3px 9px rgba(37, 46, 35, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.nav-circle-back__chevron {
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 2px solid #002900;
  border-bottom: 2px solid #002900;
  transform: rotate(45deg);
}
.fitting-pet-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(230, 232, 225, 0.92);
  backdrop-filter: blur(8px);
}
.fitting-pet-seg__btn {
  min-width: 62px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #5A675E;
}
.fitting-pet-seg__btn.is-active {
  background: #FFFFFF;
  color: #002900;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 41, 0, 0.08);
}
.fitting-snap-pill {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(225, 229, 215, 0.95);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 3px 9px rgba(37, 46, 35, 0.10);
  color: #002900;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.wardrobe-sheet {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 0;
  width: min(100vw, 520px);
  max-height: 41dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid #E5E3DF;
  border-radius: 24px 24px 0 0;
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 -10px 30px rgba(24, 30, 24, 0.14);
  transform: translate(-50%, 104%);
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}
.page.is-fitting .wardrobe-sheet {
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.wardrobe-sheet__grabber {
  display: flex;
  justify-content: center;
  padding: 2px 0 8px;
  cursor: pointer;
}
.wardrobe-sheet__grabber span {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #CFCBC4;
}
.wardrobe-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wardrobe-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wardrobe-filter {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #EEF0EA;
  color: #5A675E;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.wardrobe-filter.is-active {
  background: #002900;
  color: #FFFFFF;
  font-weight: 600;
}
.wardrobe-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1px solid #E5E3DF;
  color: #35483C;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wardrobe-stars img {
  width: 15px;
  height: 15px;
}
.wardrobe-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 2px 10px;
}
.outfit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 7px;
  border-radius: 14px;
  border: 1.5px solid #E5E3DF;
  background: #FFFFFF;
}
.outfit-card.is-selected {
  border: 2px solid #002900;
  background: #F5F8ED;
}
.outfit-card__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.outfit-card__plush-dot {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F4F5EC;
  color: #5A675E;
  font-size: 11px;
  font-weight: 500;
}
.outfit-card__name {
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 500;
}
.outfit-card__price {
  position: absolute;
  left: 5px;
  top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1.5px 5px;
  border-radius: 999px;
  background: #FFF9EB;
  border: 1px solid rgba(185, 130, 32, 0.28);
  color: #8A6214;
  font-size: 10px;
  font-weight: 600;
}
.outfit-card__price img {
  width: 10px;
  height: 10px;
}
.outfit-card__check {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #002900;
  color: #FFFFFF;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wardrobe-sheet__footer {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}
.wardrobe-footer-revert {
  flex: 0 0 92px;
}

/* ---------- 7. 红线折角伴侣信笺与带妆拍立得（1:1 复刻 today-companion-overlay） ---------- */
.today-companion-overlay {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(44px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  background: rgba(29, 34, 30, 0.42);
  backdrop-filter: blur(3px);
}
.today-companion-stage {
  position: relative;
  width: min(100%, 380px);
}
.today-companion-award {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 75px;
  height: 75px;
  margin-bottom: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.today-companion-award__plus {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 10px;
  margin-top: -17px;
  color: #FFDD79;
  font-size: 22px;
  font-weight: 600;
  line-height: 34px;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(72, 50, 12, 0.35);
  animation: today-companion-award-plus 0.85s cubic-bezier(0.2, 0.9, 0.3, 1) 0.82s both;
}
@keyframes today-companion-award-plus {
  0% { opacity: 0; transform: translate3d(-22px, 10px, 0) rotate(-140deg) scale(0.5); }
  45% { opacity: 1; transform: translate3d(2px, -6px, 0) rotate(8deg) scale(1.06); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

.today-companion-letter {
  position: relative;
  width: 100%;
  max-height: 76dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 21px 21px 19px 33px;
  border: 1px solid rgba(126, 103, 73, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0, transparent 21px, rgba(184, 105, 84, 0.16) 21.5px, rgba(184, 105, 84, 0.16) 22.5px, transparent 23px),
    #FFF9EB;
  box-shadow: 0 13px 32px rgba(32, 28, 23, 0.28);
  color: #35483C;
}
.today-companion-letter::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, #E5D8BD 0, #E5D8BD 49%, rgba(128, 105, 75, 0.16) 50%, rgba(128, 105, 75, 0.07) 55%, transparent 56%);
}
.companion-close {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #5A675E;
}
.today-companion-letter__title {
  display: block;
  padding-right: 28px;
  color: #35483C;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.today-companion-letter__line {
  display: block;
  margin-top: 8px;
  color: #5A675E;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 13.5px;
  line-height: 1.6;
}
.postcard-scene-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.postcard-scene-pill {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 103, 73, 0.22);
  background: rgba(255, 253, 248, 0.72);
  color: #5A675E;
  font-size: 11px;
  white-space: nowrap;
}
.postcard-scene-pill.is-active {
  background: #35483C;
  border-color: #35483C;
  color: #FFFFFF;
  font-weight: 600;
}
.companion-memory-result {
  margin-top: 10px;
}
.companion-polaroid {
  padding: 8px 8px 14px;
  background: #FFFDF8;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(42, 34, 24, 0.10);
}
.companion-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 800 / 920;
  max-height: 36dvh;
  object-fit: cover;
  background: #EFECE4;
}
.companion-polaroid__caption {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.companion-polaroid__place {
  color: #002900;
  font-size: 13px;
  font-weight: 600;
}
.companion-polaroid__outfit {
  color: #8C8C88;
  font-size: 11px;
}
.companion-memory-result__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* ---------- 8. 全屏 #FAFAF8 纪念册与详情页（1:1 复刻 keepsake-album） ---------- */
.keepsake-page {
  position: fixed;
  z-index: 420;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #FAFAF8;
  color: #1A1A1A;
  animation: eggbabe-card-enter 0.22s ease-out both;
}
@keyframes eggbabe-card-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.eb-nav-bar {
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAF8;
}
.eb-nav-bar__back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eb-nav-bar__chevron {
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 2px solid #002900;
  border-bottom: 2px solid #002900;
  transform: rotate(45deg);
}
.eb-nav-bar__title {
  margin: 0;
  color: #002900;
  font-size: 15px;
  font-weight: 600;
}
.eb-nav-bar__spacer {
  width: 36px;
}
.keepsake-tabs {
  padding: 6px 24px 12px;
}
.keepsake-tabs__track {
  max-width: 460px;
  margin: 0 auto;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: #E6E8E1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.keepsake-tab {
  border-radius: 999px;
  color: #5C5C5C;
  font-size: 13px;
  font-weight: 500;
}
.keepsake-tab--active {
  background: #FFFFFF;
  color: #002900;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 41, 0, 0.06);
}
.keepsake-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px calc(28px + var(--safe-bottom));
}
.keepsake-empty {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.keepsake-empty__ring {
  width: 32px;
  height: 32px;
  border: 2px solid #002900;
  border-radius: 50%;
  opacity: 0.72;
}
.keepsake-empty__text {
  margin: 0;
  color: #8C8C88;
  font-size: 13px;
}
.keepsake-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.keepsake-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E5E3DF;
  display: flex;
  flex-direction: column;
}
.keepsake-cell--postcard .keepsake-cell__media {
  aspect-ratio: 100 / 132;
}
.keepsake-cell--keepsake .keepsake-cell__media {
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #F5F6F1;
}
.keepsake-cell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.keepsake-cell--keepsake .keepsake-cell__media img {
  object-fit: contain;
}
.keepsake-cell__label {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.keepsake-detail-body {
  flex: 1;
  overflow-y: auto;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px calc(32px + var(--safe-bottom));
}
.keepsake-detail-hero {
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E5E3DF;
  padding: 10px;
}
.keepsake-detail-hero img {
  display: block;
  width: 100%;
  max-height: 50dvh;
  object-fit: contain;
  border-radius: 10px;
}
.keepsake-detail-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.keepsake-detail-title {
  margin: 0;
  color: #002900;
  font-size: 17px;
  font-weight: 600;
}
.keepsake-detail-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EEF0EA;
  color: #35483C;
  font-size: 11px;
  font-weight: 500;
}
.keepsake-detail-story {
  margin: 12px 0 0;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.75;
}
.keepsake-detail-date {
  display: block;
  margin-top: 10px;
  color: #8C8C88;
  font-size: 12px;
}
.keepsake-detail-actions {
  margin-top: 20px;
}

/* ---------- 9. 无障碍动态减弱降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   10. eggbabe-h5 全量内容融合：右侧 3D 喂食/洗澡/装扮胶囊、3D 零食托盘、搓澡泡泡与双页签衣橱
   ========================================================================== */

/* 左上状态牌：等级小签 + 一键切换锦鲤/玉兔 */
.pet-mood-tab__lv-pill {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EDF2E3;
  color: #4E6334;
  font-size: 10.5px;
  font-weight: 600;
}
.pet-mood-tab__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pet-mood-tab__switch-btn {
  padding: 2.5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(53, 72, 60, 0.18);
  background: #F4F5EC;
  color: #35483C;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pet-mood-tab__switch-btn:hover {
  background: #E8EDE0;
}

/* 11 套插画背景独立舞台层（保持 9:16 原生构图不拉伸） */
.custom-stage-bg {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
.page.is-fitting .custom-stage-bg {
  transform: translateY(-14%);
}
.page.has-custom-bg .world-track {
  background: transparent;
}
.page.has-custom-bg .world-panorama-bg {
  opacity: 0;
}

/* 漫画情绪节拍宿主、打盹 Zzz、脏污提醒、肥皂泡泡与冲水闪光 */
.pet-fx-host,
.soap-bubble-layer,
.dirty-layer {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.emo-beat-node {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, opacity;
}
.emo-fx-svg {
  display: block;
  overflow: visible;
}
.emo-beat-node--heart .emo-fx-svg {
  filter: drop-shadow(0 4px 8px rgba(186, 72, 102, 0.28)) drop-shadow(0 1px 2px rgba(90, 42, 54, 0.16));
}
.emo-beat-node--star .emo-fx-svg {
  filter: drop-shadow(0 3px 8px rgba(226, 168, 38, 0.36)) drop-shadow(0 0 6px rgba(255, 240, 180, 0.55));
}
.emo-beat-node--q .emo-fx-svg,
.emo-beat-node--bang .emo-fx-svg {
  filter: drop-shadow(0 4px 8px rgba(58, 44, 28, 0.18));
}
.emo-beat-node--q.is-big .emo-fx-svg {
  width: 32px;
  height: 32px;
}
.emo-beat-node--tear .emo-fx-svg {
  filter: drop-shadow(0 3px 6px rgba(48, 118, 178, 0.26));
}
.emo-beat-node--haha {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(252, 248, 239, 0.94);
  border: 1.5px solid rgba(224, 120, 90, 0.28);
  color: #D46547;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(74, 52, 30, 0.14);
}
.sleep-zz {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  transform: translate(-50%, -100%);
}
.sleep-zz__char {
  display: inline-block;
  color: #FFFBF2;
  font-weight: 800;
  font-family: "Quicksand", "Nunito", "PingFang SC", system-ui, sans-serif;
  text-shadow: 0 2px 6px rgba(42, 34, 24, 0.32), 0 0 8px rgba(255, 248, 224, 0.45);
  animation: zz-char-float 2.6s ease-in-out infinite;
}
.sleep-zz__char--1 {
  font-size: 12px;
  animation-delay: 0s;
}
.sleep-zz__char--2 {
  font-size: 16px;
  margin-bottom: 5px;
  animation-delay: 0.45s;
}
.sleep-zz__char--3 {
  font-size: 21px;
  margin-bottom: 12px;
  animation-delay: 0.9s;
}
@keyframes zz-char-float {
  0%, 100% { opacity: 0.28; transform: translate3d(0, 4px, 0) scale(0.88) rotate(-6deg); }
  50% { opacity: 0.96; transform: translate3d(4px, -10px, 0) scale(1.08) rotate(5deg); }
}

/* 很臭（脏兮兮）与很饿（咕噜噜）拟真治愈态表现层 */
.dirty-layer,
.hungry-layer {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.page.is-pet-dirty:not(.is-bathing) .gl-pet {
  filter: saturate(0.84) brightness(0.94) sepia(0.08);
}
.stink-wisp {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(84, 98, 56, 0.16));
  animation: wisp-rise 2.6s ease-in-out infinite;
}
.stink-wisp svg { display: block; }
.stink-2 { animation-delay: 0.85s; }
.stink-3 { animation-delay: 1.65s; }
@keyframes wisp-rise {
  0% { opacity: 0; transform: translate(-50%, -35%) scale(0.85); }
  40% { opacity: 0.88; }
  100% { opacity: 0; transform: translate(-50%, -105%) scale(1.08); }
}
.tiny-fly {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(42, 46, 36, 0.2));
  animation: fly-orbit 3.1s ease-in-out infinite alternate;
}
.tiny-fly svg { display: block; }
.fly-b { animation-duration: 3.7s; animation-direction: alternate-reverse; }
@keyframes fly-orbit {
  0% { transform: translate(-20px, -6px) rotate(-10deg); }
  50% { transform: translate(14px, -20px) rotate(12deg); }
  100% { transform: translate(22px, 4px) rotate(-6deg); }
}

.care-cue-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(253, 249, 240, 0.95);
  border: 1.5px solid rgba(154, 168, 122, 0.44);
  color: #546140;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(64, 72, 46, 0.16);
  animation: cue-float 2.7s ease-in-out infinite;
}
.care-cue-bubble:active {
  transform: translate(-50%, -50%) scale(0.95);
}
@keyframes cue-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 5px)); }
}

/* 很饿：肚子咕噜噜声波 + 头顶云朵想吃思绪泡 */
.hungry-rumble {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  animation: hungry-rumble-pulse 2.8s ease-in-out infinite;
}
.hungry-rumble__text {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(253, 248, 238, 0.92);
  border: 1px solid rgba(224, 148, 88, 0.34);
  color: #C87338;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 8px rgba(130, 74, 34, 0.14);
}
.hungry-rumble__arc {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(180, 102, 44, 0.18));
}
@keyframes hungry-rumble-pulse {
  0%, 58%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  66% { opacity: 0.96; transform: translate(calc(-50% - 2px), -50%) scale(1.04); }
  74% { opacity: 0.98; transform: translate(calc(-50% + 2px), -50%) scale(1.06); }
  82% { opacity: 0.92; transform: translate(calc(-50% - 1px), -50%) scale(1.02); }
  94% { opacity: 0; transform: translate(-50%, -54%) scale(0.94); }
}

.hungry-thought-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  width: 52px;
  height: 46px;
  border-radius: 26px 26px 24px 24px;
  background: rgba(253, 249, 241, 0.96);
  border: 1.5px solid rgba(186, 152, 114, 0.36);
  box-shadow: 0 6px 16px rgba(74, 52, 30, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cue-float 2.9s ease-in-out 0.3s infinite;
}
.hungry-thought-bubble:active {
  transform: translate(-50%, -50%) scale(0.94);
}
.hungry-thought-bubble__img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.hungry-thought-bubble__dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(253, 249, 241, 0.96);
  border: 1.2px solid rgba(186, 152, 114, 0.34);
  pointer-events: none;
}
.hungry-thought-bubble__dot--1 {
  width: 9px;
  height: 9px;
  left: 6px;
  bottom: -9px;
}
.hungry-thought-bubble__dot--2 {
  width: 5.5px;
  height: 5.5px;
  left: -1px;
  bottom: -16px;
}

.soap-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 245, 232, 0.42) 34%, rgba(206, 242, 238, 0.28) 64%, rgba(244, 214, 240, 0.24) 86%, rgba(255, 255, 255, 0.62) 100%);
  box-shadow: 0 3px 8px rgba(42, 60, 52, 0.14), inset 0 -3px 6px rgba(255, 255, 255, 0.72), inset 2px 2px 5px rgba(255, 236, 244, 0.42);
  transform: translate(-50%, -50%) scale(0.35);
  animation: bubble-pop-in 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.soap-bubble::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 30%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-28deg);
}
.soap-bubble.is-popping {
  animation: bubble-fade-up 0.42s ease-out forwards;
}
@keyframes bubble-pop-in {
  to { transform: translate(-50%, -50%) scale(1); }
}
@keyframes bubble-fade-up {
  to { opacity: 0; transform: translate(-50%, -95%) scale(1.28); }
}

.rinse-flash {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 56%, rgba(255, 252, 236, 0.48), transparent 68%);
  animation: rinse-fade 0.92s ease-out forwards;
}
.rinse-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 36%, rgba(255, 255, 255, 0.68) 50%, transparent 64%);
  animation: rinse-sweep 0.85s ease-out forwards;
}
@keyframes rinse-sweep {
  from { transform: translateX(-60%); }
  to { transform: translateX(60%); }
}
@keyframes rinse-fade {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}

/* 右侧竖向 3D 喂食 / 洗澡 / 装扮胶囊（对齐截图右侧蓝框 + 3D 百宝箱材质风格） */
.care-3d-dock {
  position: fixed;
  z-index: 28;
  right: 12px;
  bottom: calc(82px + var(--safe-bottom));
  width: 58px;
  padding: 8px 5px;
  border: 1.5px solid rgba(164, 134, 98, 0.28);
  border-radius: 999px;
  background: rgba(252, 248, 239, 0.94);
  box-shadow: 0 6px 18px rgba(74, 52, 30, 0.13), inset 0 1px 0 rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.page.is-fitting .care-3d-dock {
  opacity: 0;
  pointer-events: none !important;
}
.care-3d-dock__item {
  width: 48px;
  padding: 5px 2px 4px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #35483C;
}
.care-3d-dock__item.is-active {
  background: #EEF3E5;
  color: #002900;
}
.care-3d-dock__icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.care-3d-dock__icon-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(42, 34, 24, 0.14));
}
.care-3d-dock__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}
.care-3d-dock__divider {
  width: 28px;
  height: 1px;
  background: #E5E3DF;
}

/* 3D 百宝箱风格底部弹层：喂食小零食托盘 & 搓澡泡泡卡 */
.care-3d-panel {
  position: fixed;
  z-index: 88;
  left: 12px;
  right: 78px;
  bottom: calc(80px + var(--safe-bottom));
  max-width: 348px;
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid #E5E3DF;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 8px 24px rgba(32, 28, 23, 0.20);
  backdrop-filter: blur(10px);
  transform-origin: 100% 80%;
  animation: toolbox-panel-open 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.care-3d-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.care-3d-panel__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.care-3d-panel__title {
  color: #35483C;
  font-size: 13px;
  font-weight: 600;
}
.care-3d-panel__sub {
  color: #8C8C88;
  font-size: 10.5px;
}
.care-3d-panel__close {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #EEF0EA;
  color: #002900;
  font-size: 11.5px;
  font-weight: 600;
  flex: none;
}

.snack-3d-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.snack-3d-card {
  padding: 8px 6px 7px;
  border-radius: 14px;
  border: 1px solid #E5E3DF;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(32, 28, 23, 0.05);
}
.snack-3d-card:active {
  cursor: grabbing;
  background: #F5F8ED;
  border-color: rgba(0, 41, 0, 0.35);
}
.snack-3d-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(42, 34, 24, 0.14));
}
.snack-3d-card__name {
  color: #35483C;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.snack-3d-card__meta {
  color: #8C8C88;
  font-size: 9.5px;
  white-space: nowrap;
}

.flying-snack-3d,
.drag-snack-3d {
  position: fixed;
  z-index: 300;
  width: 58px;
  height: 58px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.flying-snack-3d {
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), top 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s ease;
}
.drag-snack-3d.is-over-pet {
  transform: translate(-50%, -50%) scale(1.18);
}
.flying-snack-3d img,
.drag-snack-3d img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(32, 28, 23, 0.24));
}

.bath-3d-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bath-3d-row__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: none;
}
.bath-3d-row__main {
  flex: 1;
  min-width: 0;
}
.bath-3d-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bath-3d-row__pct {
  color: #002900;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bath-3d-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #EEF0EA;
  overflow: hidden;
}
.bath-3d-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #819A54, #9DB65B);
  transition: width 0.14s ease-out;
}

/* 装扮抽屉双主 Tab（套装 + 12 套背景）与顶栏操作组 */
.fitting-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fitting-snap-pill--ink {
  background: #002900;
  border-color: #002900;
  color: #FFFFFF;
}
.wardrobe-main-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #E6E8E1;
}
.wardrobe-main-tab {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5A675E;
  font-size: 12px;
  font-weight: 500;
}
.wardrobe-main-tab.is-active {
  background: #FFFFFF;
  color: #002900;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 41, 0, 0.08);
}
.wardrobe-done-pill {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #002900;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
}
.outfit-card__bg-thumb {
  width: 100%;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
}

/* ==========================================================================
   11. 暖白方格手帐「个人信息与伙伴档案」弹窗（PRD-0003 Phase 1 P1）
   ========================================================================== */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, calc(var(--wx-capsule-bottom, env(safe-area-inset-top, 0px)) + 8px)) 14px max(16px, calc(12px + var(--safe-bottom)));
  background: rgba(34, 30, 24, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: profile-fade-in 0.2s ease-out;
}
.profile-modal-overlay[hidden] {
  display: none;
}
@keyframes profile-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-journal-card {
  position: relative;
  display: flex;
  width: min(92vw, 420px);
  max-height: calc(100dvh - max(32px, calc(var(--wx-capsule-bottom, env(safe-area-inset-top, 0px)) + 24px)));
  border-radius: 18px;
  overflow: hidden;
  background-color: #FFFDF9;
  background-image:
    linear-gradient(to right, rgba(180, 166, 142, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 166, 142, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1.5px solid #E3D7C3;
  box-shadow: 0 18px 42px rgba(28, 22, 14, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: profile-card-pop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes profile-card-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-journal-card__spine {
  flex: none;
  width: 10px;
  background: linear-gradient(180deg, #ECE3D0 0%, #E4D7BE 55%, #DECFA8 100%);
  border-right: 1px dashed rgba(140, 118, 86, 0.36);
  box-shadow: inset -2px 0 4px rgba(120, 96, 62, 0.08);
}

.profile-journal-card__inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.profile-journal-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 10px 15px;
  border-bottom: 1px dashed rgba(146, 128, 100, 0.28);
  background: rgba(255, 252, 245, 0.82);
}
.profile-journal-header__title {
  margin: 0;
  color: #3B3022;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.profile-journal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #D9CCB5;
  background: #F4ECE0;
  color: #6B573E;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease;
}
.profile-journal-close:hover {
  background: #EAE0CE;
}
.profile-journal-close:active {
  transform: scale(0.92);
}

.profile-journal-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 202, 182, 0.7);
  border-radius: 13px;
  padding: 11px 12px;
}
.profile-section__label {
  color: #544636;
  font-size: 12.5px;
  font-weight: 600;
}

/* 分区一：账号与身份 */
.profile-account__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.profile-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #DCE7CD 0%, #C7DAB0 100%);
  border: 1.5px solid #B7CCA0;
  color: #2D4628;
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-account__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-account__name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.profile-account__nickname {
  color: #2A241C;
  font-size: 15px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-pencil-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #E5C97B;
  background: #FFF4CC;
  color: #8A6110;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.profile-pencil-btn--sm {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.profile-pencil-btn:hover {
  background: #FCEAA6;
}
.profile-sync-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EDF4E6;
  color: #4A6A3A;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.profile-account__id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6B6153;
}
.profile-account__id-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #3E362B;
  font-weight: 600;
}
.profile-copy-pill {
  padding: 1.5px 8px;
  border-radius: 999px;
  border: 1px solid #E2C675;
  background: #FEF3C7;
  color: #7C5610;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.profile-copy-pill:hover {
  background: #FDE79B;
}
.profile-account__phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  font-size: 11.5px;
  color: #665D4F;
}
.profile-account__phone-row[hidden] {
  display: none;
}
.profile-phone-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(53, 72, 60, 0.22);
  background: #F3F6EC;
  color: #35483C;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.profile-phone-pill:hover {
  background: #E7EEDF;
}
.profile-bio-box {
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #FAF6EE;
  border: 1px dashed rgba(174, 155, 126, 0.42);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #5C5244;
}
.profile-bio-box__label {
  flex: none;
  color: #8A7E6D;
}
.profile-bio-box__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分区二：宠物核心档案 */
.profile-pet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.profile-pet-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: #F1EBE0;
  border: 1px solid rgba(176, 160, 134, 0.35);
}
.profile-pet-seg__btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #695E4F;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.profile-pet-seg__btn.is-active {
  background: #FFFFFF;
  color: #1F3B24;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(42, 34, 22, 0.1);
}

.profile-pet__card {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border-radius: 11px;
  background: #FBF8F1;
  border: 1px solid rgba(214, 202, 182, 0.55);
}
.profile-pet__thumb-wrap {
  flex: none;
  width: 74px;
  height: 82px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 62%, #FFFFFF 0%, #F1EAD9 100%);
  border: 1px solid rgba(196, 182, 156, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-pet__thumb {
  width: 92%;
  height: 92%;
  object-fit: contain;
}
.profile-pet__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-pet__name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.profile-pet__name {
  color: #002900;
  font-size: 15px;
  font-weight: 600;
}
.profile-lv-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EDF2E3;
  color: #4E6334;
  font-size: 10.5px;
  font-weight: 600;
}
.profile-pet__mood-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: #5A675E;
}
.profile-pet__mood-name {
  color: #2B4232;
  font-weight: 600;
}
.profile-pet__mood-quote {
  margin: 0;
  font-size: 11px;
  line-height: 1.42;
  color: #4D463B;
}
.profile-pet__outfit-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 1.5px 7px;
  border-radius: 6px;
  background: #EFE9DC;
  color: #635542;
  font-size: 10px;
  font-weight: 500;
}

.profile-stats-grid {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-stat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FAF7EF;
  border: 1px solid rgba(210, 198, 176, 0.65);
  text-align: left;
}
.profile-stat-card--star {
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.14s ease;
}
.profile-stat-card--star:active {
  transform: scale(0.97);
  background: #F4EFE2;
}
.profile-stat-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.profile-stat-card__label {
  font-size: 11px;
  color: #6B6153;
}
.profile-stat-card__val {
  font-size: 13.5px;
  font-weight: 600;
  color: #283E2B;
  font-variant-numeric: tabular-nums;
}
.profile-stat-card__sub {
  font-size: 10px;
  color: #867B6B;
}

.profile-bars {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-bar-row {
  display: grid;
  grid-template-columns: 68px 1fr 52px;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #4E5B52;
}
.profile-bar-row__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(53, 72, 60, 0.1);
  overflow: hidden;
}
.profile-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  background: #6E8B57;
  transition: width 0.28s ease, background-color 0.25s ease;
}
.profile-bar-row__fill--exp {
  background: #D7A846;
}
.profile-bar-row__val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #35483C;
  font-size: 10.5px;
}
.profile-bar-row.is-warning .profile-bar-row__label,
.profile-bar-row.is-warning .profile-bar-row__val {
  color: #D96B52;
}
.profile-bar-row.is-warning .profile-bar-row__fill {
  background: #D96B52;
}

/* 分区三：陪伴足迹概览 */
.profile-footprints__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.profile-footprints__hint {
  font-size: 10.5px;
  color: #8D8170;
}
.profile-footprints__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.profile-fp-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(186, 174, 152, 0.65);
  background: #FAF7F0;
  color: #39483B;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.14s ease, transform 0.12s ease;
}
.profile-fp-pill:hover {
  background: #F0EAE0;
}
.profile-fp-pill:active {
  transform: scale(0.97);
}
.profile-fp-pill--upcoming {
  color: #7D766B;
  border-style: dashed;
}

@media (max-width: 360px) {
  .profile-journal-scroll {
    padding: 10px 10px 14px 11px;
  }
  .profile-pet__thumb-wrap {
    width: 62px;
    height: 70px;
  }
  .profile-bar-row {
    grid-template-columns: 62px 1fr 48px;
  }
}

/* ==========================================================================
   12. P2 木质博古「收藏格」（3×4 暖橡木多宝柜 + 41 件分页图鉴 + 线索卡）
   ========================================================================== */
.eb-nav-bar--capsule-safe {
  height: auto;
  min-height: calc(52px + max(var(--safe-top), var(--wx-capsule-top, 12px)));
  padding: max(var(--safe-top), var(--wx-capsule-top, 12px)) max(16px, var(--wx-capsule-right-pad, 16px)) 8px 14px;
}

.curio-cabinet-view {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.curio-cabinet-view[hidden] {
  display: none;
}

/* 上半区：暖橡木 3×4 多宝收藏格 */
.curio-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.curio-shelf-head__left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.curio-shelf-head__title {
  color: #3B2B1C;
  font-size: 14.5px;
  font-weight: 600;
}
.curio-shelf-head__sub {
  color: #826E58;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.curio-shelf-head__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.curio-arrange-btn--pack {
  background: #002900 !important;
  border-color: #002900 !important;
  color: #FFFFFF !important;
}
.keepsake-detail-actions--row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* 纪念册 · 收藏卡页签（实体蛋 3D 全息纪念卡展台） */
.holocards-album-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.holocards-album-view[hidden] {
  display: none;
}
.holocards-album-head__eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6B7B58;
  margin-bottom: 4px;
}
.holocards-album-head__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}
.holocards-album-head__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7A766E;
  line-height: 1.45;
}
.holocards-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 14px;
}
.holocard-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 248, 232, 0.72);
  background: var(--hc-frame, linear-gradient(150deg, #F8F3E4 0%, #D9E5C7 42%, #9DB65B 100%));
  box-shadow: 0 10px 24px -10px rgba(42, 34, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #1C2418;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.holocard-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.34) 0%, transparent 38%, rgba(255, 234, 178, 0.22) 66%, transparent 100%);
}
.holocard-tile:active {
  transform: scale(0.97);
}
.holocard-tile__win {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: 12px;
  background: var(--hc-win);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.holocard-tile__win img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(24, 18, 10, 0.28));
}
.holocard-tile__plaque {
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(0, 41, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.holocard-tile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.holocard-tile__name {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
}
.holocard-tile__tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 41, 0, 0.07);
  color: #35483C;
}
.holocard-tile__outfit {
  font-size: 11.5px;
  color: #6E675C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holocard-tile__cta {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(0, 41, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #002900;
}
.curio-arrange-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #C8A77E;
  background: linear-gradient(180deg, #FFF9EE 0%, #F4E7D2 100%);
  color: #5E4022;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, background-color 0.15s ease;
}
.curio-arrange-btn.is-active {
  background: #4E6334;
  border-color: #3E5128;
  color: #FFFDF8;
}
.curio-arrange-btn:active {
  transform: scale(0.96);
}
.curio-arrange-hint {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #F6EFE1;
  border: 1px dashed #CDB696;
  color: #6E5438;
  font-size: 11px;
  line-height: 1.4;
}

.oak-cabinet {
  position: relative;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #D2A877 0%, #C59562 48%, #B88652 100%);
  border: 2px solid #9D6E3E;
  box-shadow:
    0 10px 24px rgba(64, 40, 18, 0.18),
    inset 0 2px 1px rgba(255, 240, 214, 0.45),
    inset 0 -3px 6px rgba(92, 56, 24, 0.25);
}

/* 四角复古黄铜包角 */
.oak-cabinet__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
  border-color: #E2BE74;
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 1px 1px rgba(68, 42, 16, 0.35));
}
.oak-cabinet__corner--tl { top: 4px; left: 4px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.oak-cabinet__corner--tr { top: 4px; right: 4px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.oak-cabinet__corner--bl { bottom: 4px; left: 4px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.oak-cabinet__corner--br { bottom: 4px; right: 4px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }

.oak-cabinet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.oak-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  aspect-ratio: 1 / 1.02;
  padding: 6px 5px 5px;
  border-radius: 10px;
  border: 1px solid rgba(110, 72, 34, 0.45);
  background:
    linear-gradient(180deg, #9C7146 0%, #AC8053 58%, #B98C5E 82%, #D5AE7F 84%, #C69A69 100%);
  box-shadow:
    inset 0 6px 14px rgba(58, 35, 14, 0.3),
    inset 0 -1px 0 rgba(255, 238, 206, 0.42);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.oak-slot:active {
  transform: scale(0.97);
}
.oak-slot.is-selected {
  border-color: #FFF3C4;
  box-shadow:
    0 0 0 2.5px #F4C960,
    inset 0 6px 14px rgba(58, 35, 14, 0.28);
}
.oak-slot--empty {
  justify-content: center;
}
.oak-slot__plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 240, 212, 0.52);
  color: rgba(255, 244, 224, 0.72);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oak-slot__empty-label {
  margin-top: 4px;
  font-size: 9.5px;
  color: rgba(255, 242, 220, 0.65);
}
.oak-slot__figure {
  position: relative;
  width: 78%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.oak-slot__figure::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 72%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 26, 10, 0.42) 0%, rgba(46, 26, 10, 0) 74%);
  pointer-events: none;
}
.oak-slot__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.oak-slot__plate {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  max-width: 100%;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #F3DFB2 0%, #DEC086 100%);
  border: 1px solid rgba(132, 96, 42, 0.45);
  color: #4A3218;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 下半区：41 件分类分页图鉴 */
.curio-catalog-section {
  background: #FFFFFF;
  border: 1px solid #E6E2D8;
  border-radius: 16px;
  padding: 13px 12px 14px;
  box-shadow: 0 4px 14px rgba(42, 34, 24, 0.04);
}
.curio-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.curio-catalog-head__title {
  color: #2B3A2E;
  font-size: 13.5px;
  font-weight: 600;
}
.curio-progress-badge {
  padding: 2.5px 9px;
  border-radius: 999px;
  border: 1px dashed #9DB488;
  background: #F1F6EB;
  color: #466032;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.curio-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.curio-cat-tabs::-webkit-scrollbar {
  display: none;
}
.curio-cat-pill {
  flex: none;
  padding: 4.5px 10px;
  border-radius: 999px;
  border: 1px solid #E1DDD3;
  background: #F7F5F0;
  color: #5C5549;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.curio-cat-pill.is-active {
  background: #35483C;
  border-color: #35483C;
  color: #FFFFFF;
  font-weight: 600;
}

.curio-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.curio-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 5px 6px;
  border-radius: 11px;
  border: 1px solid #EAE6DC;
  background: #FCFBF8;
  cursor: pointer;
  transition: transform 0.13s ease, border-color 0.15s ease;
}
.curio-item-card:active {
  transform: scale(0.96);
}
.curio-item-card--locked {
  background: #F7F5EF;
  border-style: dashed;
  border-color: #DED7C8;
}
.curio-item-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.curio-item-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.curio-item-card--locked .curio-item-card__img {
  opacity: 0.42;
}
.curio-item-card__name {
  margin-top: 3px;
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  color: #323D34;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.curio-item-card--locked .curio-item-card__name {
  color: #8A7F70;
  font-weight: 500;
}
.curio-item-card__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 4px;
  border-radius: 5px;
  background: #EDF3E4;
  color: #4E6636;
  font-size: 8.5px;
  font-weight: 600;
}
.curio-item-card__q {
  position: absolute;
  top: 4px;
  right: 5px;
  color: #A0927D;
  font-size: 10px;
  font-weight: 600;
}

.curio-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.curio-pagination[hidden] {
  display: none;
}
.curio-page-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #DCD6C9;
  background: #FAF8F3;
  color: #3B4A3E;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.curio-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.curio-page-indicator {
  font-size: 12px;
  color: #5F685E;
  font-variant-numeric: tabular-nums;
}
.curio-catalog-empty {
  min-height: 180px;
}

/* 摆放选择器 & 拾物线索卡子浮层 */
.curio-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, calc(var(--wx-capsule-bottom, 0px) + 12px)) 16px max(20px, var(--safe-bottom));
  background: rgba(34, 28, 22, 0.45);
  backdrop-filter: blur(4px);
}
.curio-sub-overlay[hidden] {
  display: none;
}

.curio-picker-sheet {
  width: min(92vw, 390px);
  max-height: 74dvh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #FFFDF9;
  border: 1.5px solid #DFD2BC;
  box-shadow: 0 16px 36px rgba(28, 22, 14, 0.24);
  overflow: hidden;
}
.curio-picker-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px dashed rgba(146, 128, 100, 0.28);
}
.curio-picker-sheet__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #3D2F20;
}
.curio-picker-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.curio-picker-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: 11px;
  border: 1px solid #E5DFD3;
  background: #FAF8F2;
  cursor: pointer;
}
.curio-picker-opt.is-placed {
  border-color: #A9BF94;
  background: #F1F6EB;
}
.curio-picker-opt img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.curio-picker-opt span {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #334036;
  text-align: center;
}
.curio-picker-sheet__foot {
  padding: 10px 14px 14px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(180, 166, 142, 0.22);
}

.curio-clue-card {
  position: relative;
  width: min(88vw, 330px);
  padding: 20px 18px 18px;
  border-radius: 18px;
  background-color: #FFFDF9;
  background-image:
    linear-gradient(to right, rgba(180, 166, 142, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 166, 142, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1.5px solid #DFD2BC;
  box-shadow: 0 16px 36px rgba(28, 22, 14, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.curio-clue-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.curio-clue-card__media {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #F6F1E7;
  border: 1px dashed #D3C5AE;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.curio-clue-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.78;
}
.curio-clue-card__tag {
  margin-top: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #EFE9DC;
  color: #6B573E;
  font-size: 10.5px;
  font-weight: 600;
}
.curio-clue-card__title {
  margin: 7px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #2D261D;
}
.curio-clue-card__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #544A3D;
}
.curio-clue-card__source {
  margin-top: 10px;
  font-size: 11px;
  color: #8C7E6A;
}

/* 详情页 A 线双宠记忆视角切换 */
.detail-pet-story-seg {
  margin: 12px 0 4px;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #EDEAE1;
  border: 1px solid #DFD9CC;
}
.detail-pet-story-seg[hidden] {
  display: none;
}
.detail-pet-story-seg__btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #5E5A50;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.detail-pet-story-seg__btn.is-active {
  background: #FFFFFF;
  color: #002900;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 41, 0, 0.1);
}

@media (max-width: 360px) {
  .oak-cabinet {
    padding: 9px;
  }
  .oak-cabinet__grid {
    gap: 6px;
  }
  .curio-catalog-grid {
    gap: 6px;
  }
}



/* ---------- 活动列表弹窗 & 小游戏全屏浮层 ---------- */
.activity-modal[hidden],
.activity-player[hidden] {
  display: none !important;
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.activity-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 28, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.activity-modal__card {
  position: relative;
  width: min(400px, 100%);
  max-height: min(76dvh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #FAF6EE;
  border: 1px solid rgba(53, 72, 60, 0.14);
  box-shadow: 0 18px 48px rgba(20, 32, 24, 0.24);
  overflow: hidden;
}

.activity-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(53, 72, 60, 0.08);
}

.activity-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #24382B;
}

.activity-modal__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6B746B;
}

.activity-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(53, 72, 60, 0.08);
  color: #35483C;
  font-size: 15px;
  cursor: pointer;
}

.activity-list {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(53, 72, 60, 0.1);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.activity-card:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 72, 60, 0.24);
  box-shadow: 0 6px 18px rgba(34, 54, 41, 0.08);
}

.activity-card:active {
  transform: scale(0.985);
}

.activity-card__thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  background: #F1EADC;
  border: 1px solid rgba(53, 72, 60, 0.08);
}

.activity-card__body {
  flex: 1;
  min-width: 0;
}

.activity-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #24382B;
}

.activity-card__tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EAF2E6;
  color: #3E6542;
}

.activity-card__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #677068;
}

.activity-card__go {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2C4634;
  color: #FAF6EE;
  font-size: 12px;
  font-weight: 600;
}

.activity-player {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: #F4EFE4;
}

.activity-player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 10px)) 14px 10px;
  background: #FAF6EE;
  border-bottom: 1px solid rgba(53, 72, 60, 0.12);
}

.activity-player__back,
.activity-player__ext {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.activity-player__back {
  border: 1px solid rgba(53, 72, 60, 0.16);
  background: #FFFFFF;
  color: #24382B;
}

.activity-player__title {
  font-size: 14px;
  font-weight: 700;
  color: #24382B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-player__ext {
  color: #3E6542;
  background: #EAF2E6;
}

.activity-player__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #FFFFFF;
}

.activity-card__thumb--contain {
  object-fit: contain;
  padding: 6px;
}

.curio-clue-card__doodle-btn {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #2C4634;
  color: #FAF6EE;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(34, 58, 42, 0.18);
  transition: transform 0.14s ease;
}

.curio-clue-card__doodle-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   12. 起居室全模组化拆层（Modular Scene Rig — PRD-0003 §5.1(2)）
   ========================================================================== */
.room-module {
  position: absolute;
  pointer-events: none;
  transform-origin: center center;
  transition: opacity 0.3s ease, filter 0.42s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.room-module img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room-module--wall {
  z-index: 2;
  /* 紧贴墙面的微弱纸边/木框接触影，避免画框悬浮 */
  filter: drop-shadow(1px 2px 1.5px rgba(42, 28, 16, 0.14));
}
.room-module--mid {
  z-index: 3;
}
.room-module--lamp {
  transform: translate(-50%, -50%);
}
.room-module--desk {
  z-index: 3;
}
/* ①b 前景云朵绒毯被子层（严格置于宠物 z:5 之上，服帖床垫零悬浮投影） */
.mod-bed-front-blanket {
  z-index: 6;
}

/* 独立贴地接触阴影（Contact AO）：仅落于底座/脚掌接触面，彻底消除贴纸悬浮感 */
.mod-contact-shadow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(36, 22, 10, 0.42) 0%,
    rgba(36, 22, 10, 0.18) 54%,
    rgba(36, 22, 10, 0) 78%
  );
  filter: blur(3px);
}
.mod-contact-shadow--bed {
  left: 4%;
  right: 6%;
  bottom: 2%;
  height: 11%;
  filter: blur(6px);
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(36, 22, 10, 0.40) 0%,
    rgba(36, 22, 10, 0.16) 58%,
    rgba(36, 22, 10, 0) 82%
  );
}
.mod-contact-shadow--lamp {
  left: 18%;
  right: 18%;
  bottom: 3%;
  height: 10%;
  filter: blur(2.5px);
  background: radial-gradient(
    ellipse at center,
    rgba(34, 20, 8, 0.48) 0%,
    rgba(34, 20, 8, 0.18) 58%,
    rgba(34, 20, 8, 0) 82%
  );
}
.mod-contact-shadow--books {
  left: 8%;
  right: 8%;
  bottom: 2%;
  height: 8%;
  filter: blur(4px);
}
.mod-contact-shadow--jewelry {
  left: 12%;
  right: 12%;
  bottom: 2%;
  height: 10%;
  filter: blur(4px);
}
.mod-contact-shadow--mug {
  left: 8%;
  right: 10%;
  bottom: 3%;
  height: 12%;
  filter: blur(4px);
  background: radial-gradient(
    ellipse at center,
    rgba(36, 22, 10, 0.32) 0%,
    rgba(36, 22, 10, 0.12) 56%,
    rgba(36, 22, 10, 0) 80%
  );
}

/* 烘焙动作态或 11 套自定义插画背景态下自动平滑隐藏 5 组模组 */
.page.is-baked-action .room-module,
.page.is-baked-action .room-lamp-glow,
.page.is-baked-action .module-hotspot:not(.module-hotspot--clock),
.page.has-custom-bg .room-module,
.page.has-custom-bg .room-lamp-glow,
.page.has-custom-bg .macro-prop--cat-clock,
.page.has-custom-bg .module-hotspot {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 全局轻度统一氛围层（z: 7，把底图、被子、宠物与黑猫钟一起罩在同一柔和色温下） */
.room-atmosphere-tint {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease, background 0.45s ease;
}
.page[data-period="sunset"]:not(.has-custom-bg) .room-atmosphere-tint {
  opacity: 1;
  background: linear-gradient(125deg, rgba(255, 224, 198, 0.08) 0%, rgba(255, 206, 178, 0.05) 100%);
  mix-blend-mode: soft-light;
}
.page[data-period="night"][data-lamp-lit="true"]:not(.has-custom-bg) .room-atmosphere-tint {
  opacity: 1;
  background: radial-gradient(ellipse 68% 72% at 28% 34%, rgba(255, 224, 168, 0.12) 0%, rgba(255, 206, 138, 0.03) 60%, transparent 100%);
  mix-blend-mode: soft-light;
}
.page[data-period="night"][data-lamp-lit="false"]:not(.has-custom-bg) .room-atmosphere-tint {
  opacity: 0;
}
.page.is-baked-action .room-atmosphere-tint,
.page.has-custom-bg .room-atmosphere-tint {
  opacity: 0;
}

/* 左下角信封按钮正上方未读来信轻气泡（圆润奶油胶囊，箭头直指信封） */
.scene-mail-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  padding: 6px 13px;
  border: 1.5px solid rgba(164, 134, 98, 0.34);
  border-radius: 999px;
  background: rgba(253, 249, 240, 0.96);
  color: #5B432C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(74, 52, 30, 0.16);
  cursor: pointer;
  animation: mail-bubble-float 2.8s ease-in-out infinite;
}
.scene-mail-bubble::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: rgba(253, 249, 240, 0.96);
  border-right: 1.5px solid rgba(164, 134, 98, 0.34);
  border-bottom: 1.5px solid rgba(164, 134, 98, 0.34);
  transform: rotate(45deg);
}
@keyframes mail-bubble-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

/* 窗台天气/时段小摆件（方案 B，带 multiply 贴合底影与昼夜明度自适应） */
.sill-weather-prop {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.sill-weather-prop img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sill-weather-prop__shadow {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 10%;
  bottom: -4%;
  height: 18%;
  border-radius: 50%;
  transform: rotate(10deg);
  background: radial-gradient(
    ellipse at center,
    rgba(16, 12, 8, 0.72) 0%,
    rgba(24, 18, 12, 0.42) 48%,
    rgba(24, 18, 12, 0) 78%
  );
  mix-blend-mode: multiply;
  filter: blur(1.4px);
}
.page[data-period="night"][data-lamp-lit="false"] .sill-weather-prop:not([data-sill-kind="night"]) {
  filter: brightness(0.72) saturate(0.84);
}
.page.has-custom-bg .sill-weather-prop,
.page.is-baked-action .sill-weather-prop {
  opacity: 0;
}

/* 外出旅行（away）留条奶油折角气泡 */
.scene-away-note {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border: 1.5px solid rgba(164, 134, 98, 0.36);
  border-radius: 14px;
  background: rgba(253, 249, 240, 0.96);
  color: #5B432C;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(74, 52, 30, 0.14);
  cursor: pointer;
  animation: mail-bubble-float 3.2s ease-in-out infinite;
}

/* 零新图动态微氛围：白天窗边微尘 + 夜晚窗外微闪星点 */
.room-ambient-fx {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}
.ambient-mote {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 224, 0.78) 0%, rgba(255, 244, 206, 0) 72%);
  opacity: 0;
}
.page[data-period="day"]:not(.has-custom-bg) .ambient-mote {
  animation: mote-drift 7.5s ease-in-out infinite;
}
.ambient-mote--1 { left: 62%; top: 22%; animation-delay: 0s; }
.ambient-mote--2 { left: 74%; top: 34%; animation-delay: 2.1s; width: 5px; height: 5px; }
.ambient-mote--3 { left: 56%; top: 44%; animation-delay: 4.3s; width: 7px; height: 7px; }
.ambient-mote--4 { left: 82%; top: 28%; animation-delay: 5.8s; width: 4px; height: 4px; }
@keyframes mote-drift {
  0%, 100% { transform: translate(0, 6px); opacity: 0; }
  35%, 65% { opacity: 0.42; }
  50% { transform: translate(-10px, -12px); }
}

.ambient-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 250, 226, 0.92);
  box-shadow: 0 0 6px rgba(255, 244, 200, 0.7);
  opacity: 0;
}
.page[data-period="night"]:not(.has-custom-bg) .ambient-star {
  animation: star-twinkle 4.2s ease-in-out infinite;
}
.ambient-star--1 { left: 66%; top: 10%; animation-delay: 0s; }
.ambient-star--2 { left: 76%; top: 16%; animation-delay: 1.4s; width: 3px; height: 3px; }
.ambient-star--3 { left: 84%; top: 8%; animation-delay: 2.7s; }
.ambient-star--4 { left: 72%; top: 24%; animation-delay: 3.3s; width: 3px; height: 3px; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.8); }
  50% { opacity: 0.85; transform: scale(1.25); }
}

/* 桌面原木小立镜细腻玻璃高光扫过（每 9 秒暗示可点击进试衣间） */
.module-hotspot--mirror {
  overflow: hidden;
  border-radius: 42% 42% 24% 24%;
}
.mirror-glint {
  position: absolute;
  inset: 14% 20% 24% 20%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.mirror-glint::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -90%;
  width: 46%;
  height: 160%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 253, 245, 0.42) 50%, transparent 100%);
  transform: rotate(18deg);
  animation: mirror-sweep 9s ease-in-out infinite;
}
@keyframes mirror-sweep {
  0%, 82%, 100% { left: -90%; opacity: 0; }
  86% { opacity: 0.9; }
  94% { left: 130%; opacity: 0; }
}
.module-hotspot--mirror.is-tapped .mirror-glint {
  box-shadow: inset 0 0 22px rgba(255, 250, 236, 0.78), 0 0 14px rgba(255, 244, 214, 0.45);
  background: radial-gradient(circle at 44% 38%, rgba(255, 253, 246, 0.36) 0%, rgba(255, 250, 236, 0.08) 64%, transparent 100%);
  animation: mirror-rim-flash 0.38s ease-out both;
}
.module-hotspot--mirror.is-tapped .mirror-glint::after {
  animation: mirror-tap-sweep 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mirror-tap-sparkle {
  position: absolute;
  top: 16%;
  right: 18%;
  width: 24px;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2) rotate(-25deg);
}
.mirror-tap-sparkle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #FFFDF5 0%, #FFE49E 52%, transparent 72%);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  filter: drop-shadow(0 0 6px rgba(255, 238, 178, 0.9));
}
.module-hotspot--mirror.is-tapped .mirror-tap-sparkle {
  animation: mirror-sparkle-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mirror-rim-flash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mirror-tap-sweep {
  0% { left: -90%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}
@keyframes mirror-sparkle-pop {
  0% { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  38% { opacity: 1; transform: scale(1.18) rotate(12deg); }
  100% { opacity: 0; transform: scale(0.7) rotate(45deg); }
}

/* 昼 / 柔粉黄昏 / 暖灯夜晚 三时段轻度自适应（与新一体化底图亮度和色温对齐） */
.page[data-period="sunset"] .room-module {
  filter: brightness(0.98) sepia(0.08) saturate(1.04);
}
.page[data-period="sunset"] .macro-prop--cat-clock {
  filter: brightness(0.97) saturate(1.03);
}
.page[data-period="night"][data-lamp-lit="true"] .room-module {
  filter: brightness(0.88) sepia(0.14) saturate(0.96);
}
.page[data-period="night"][data-lamp-lit="false"] .room-module {
  filter: brightness(0.68) saturate(0.78) hue-rotate(8deg);
}
/* 夜间黑猫警长钟严禁加 sepia 防止发棕，保持哑光纯黑质感 */
.page[data-period="night"] .macro-prop--cat-clock {
  filter: brightness(0.76) contrast(1.05) saturate(0.86);
}
.page[data-period="night"][data-lamp-lit="true"] .macro-prop--cat-clock {
  filter: brightness(0.92) contrast(1.04) saturate(0.96);
}
.page[data-period="night"] .scene-cat-clock__shadow {
  background: radial-gradient(
    ellipse at center,
    rgba(24, 18, 14, 0.50) 0%,
    rgba(24, 18, 14, 0.20) 56%,
    rgba(24, 18, 14, 0) 80%
  );
}

/* 床头台灯开启时的 z:7 双层暖黄定向光锥（灯罩内暖光 + 向下照亮顶板与黑猫钟，零泛白雾团） */
.room-lamp-glow {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  transform: translate(-50%, -50%);
  overflow: visible;
  animation: lamp-glow-breathe 4.4s ease-in-out infinite;
}
.room-lamp-glow__shade {
  position: absolute;
  left: 34%;
  top: 18%;
  width: 32%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 224, 146, 0.44) 0%,
    rgba(255, 192, 92, 0.16) 52%,
    rgba(255, 174, 84, 0) 78%
  );
  mix-blend-mode: soft-light;
}
.room-lamp-glow__cone {
  position: absolute;
  left: -12%;
  top: 10%;
  width: 124%;
  height: 98%;
  background: radial-gradient(
    ellipse 48% 46% at 50% 34%,
    rgba(255, 208, 118, 0.28) 0%,
    rgba(255, 184, 86, 0.12) 38%,
    rgba(255, 170, 72, 0) 68%
  );
}
.page[data-period="day"] .room-lamp-glow {
  opacity: 0.36;
}
.page[data-period="sunset"] .room-lamp-glow {
  opacity: 0.62;
}
.page[data-period="night"] .room-lamp-glow {
  opacity: 0.88;
}
@keyframes lamp-glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.985); }
  50% { transform: translate(-50%, -50%) scale(1.025); }
}

/* 首饰盒微开时的柔和金色星芒呼吸微光 */
.mod-jewelry__gleam {
  position: absolute;
  z-index: 3;
  left: 34%;
  top: 63%;
  width: 44%;
  height: 20%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 232, 152, 0.78) 0%, rgba(255, 206, 102, 0.28) 54%, transparent 78%);
  transition: opacity 0.3s ease;
}
.room-module--jewelry[data-jewelry-state="peek_gleam"] .mod-jewelry__gleam {
  opacity: 1;
  animation: jewelry-gleam-pulse 2.2s ease-in-out infinite;
}
@keyframes jewelry-gleam-pulse {
  0%, 100% { opacity: 0.58; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 书架上层未读来信微晃提示 */
.mod-books__plane {
  position: absolute;
  z-index: 3;
  right: 14%;
  top: 10%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 249, 230, 0.94);
  border: 1px solid rgba(196, 154, 78, 0.62);
  box-shadow: 0 2px 6px rgba(58, 38, 16, 0.22);
  color: #B47824;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shelf-plane-bob 2.4s ease-in-out infinite;
}
@keyframes shelf-plane-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}

/* 桌面咖啡杯袅袅热气 */
.mod-desk__steam {
  position: absolute;
  z-index: 3;
  left: 59%;
  top: 10%;
  width: 14%;
  height: 22%;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.room-module--desk[data-steam="off"] .mod-desk__steam {
  opacity: 0;
}
.mod-desk__steam-wisp {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 22px;
  border-left: 2px solid rgba(255, 252, 245, 0.62);
  border-radius: 50%;
  animation: coffee-steam-rise 2.8s ease-in-out infinite;
}
.mod-desk__steam-wisp--1 { left: 26%; }
.mod-desk__steam-wisp--2 { left: 56%; animation-delay: 1.2s; }
@keyframes coffee-steam-rise {
  0% { opacity: 0; transform: translateY(6px) scaleX(0.9); }
  45% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(-18px) scaleX(1.15); }
}

/* 家具模组交互热区（z: 8，严格 x ∈ [290, 2500]） */
.module-hotspot {
  position: absolute;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}
.module-hotspot--clock {
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.room-module.is-nudge {
  animation: module-soft-nudge 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes module-soft-nudge {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
.room-module--lamp.is-nudge {
  animation: lamp-soft-nudge 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lamp-soft-nudge {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.07); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ==========================================================================
   13. 床头《奶肚黑猫警长发条钟》场景微动态 & 居中 3D Flip 翻转弹窗（PRD-0003 P4）
   ========================================================================== */
.clock-duty-hint {
  position: fixed;
  z-index: 24;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 214, 190, 0.92);
  background: rgba(255, 252, 244, 0.90);
  box-shadow: 0 4px 12px rgba(34, 28, 20, 0.16);
  color: #3A3228;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.clock-duty-hint.is-hidden-edge,
.page.is-fitting .clock-duty-hint,
.page.has-custom-bg .clock-duty-hint {
  opacity: 0;
  pointer-events: none;
  transform: translate(-10px, -50%);
}
.clock-duty-hint__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D9A034;
  box-shadow: 0 0 0 2px rgba(217, 160, 52, 0.24);
}
.clock-duty-hint.is-focusing .clock-duty-hint__dot {
  background: #6E8B57;
  animation: care-warn-pulse 1.6s ease-in-out infinite;
}

/* 场景床头黑猫警长表（z:4, center (430, 448)，脚掌稳踩床头顶板木纹面 + 贴地脚底接触影） */
.macro-prop--cat-clock {
  pointer-events: none; /* 点击由 z:8 #hit-cat-clock 统一接管，防止被层叠遮挡 */
  z-index: 7;
  transform: translate(-50%, -56%);
}
/* 烘焙动作态原画床顶板略低，微调脚掌贴合顶板木面零悬空 */
.page.is-baked-action .macro-prop--cat-clock {
  transform: translate(-50%, -56%);
}
.scene-cat-clock__shadow {
  position: absolute;
  z-index: 1;
  left: 24%;
  right: 16%;
  bottom: -1%;
  height: 13%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: radial-gradient(
    ellipse at center,
    rgba(28, 18, 10, 0.62) 0%,
    rgba(28, 18, 10, 0.24) 55%,
    rgba(28, 18, 10, 0) 80%
  );
  filter: blur(1.5px);
}
.scene-cat-clock__img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scene-cat-clock__eye,
.ip-clock__eye {
  position: absolute;
  z-index: 3;
  width: 7.4%;
  height: 4.4%;
  border-radius: 50%;
  background: #232428;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: 50% 42%;
  pointer-events: none;
  animation: cat-patrol-blink 12s ease-in-out infinite;
}
.ip-clock__eye--left {
  left: 44.25%;
  top: 30.89%;
}
.ip-clock__eye--right {
  left: 54.61%;
  top: 32.33%;
}
.scene-cat-clock__eye--left {
  left: 55.0%;
  top: 26.8%;
}
.scene-cat-clock__eye--right {
  left: 69.8%;
  top: 26.8%;
}
@keyframes cat-patrol-blink {
  0%, 93%, 100% { transform: translate(-50%, -50%) scaleY(0); }
  95.5% { transform: translate(-50%, -50%) scaleY(1.05); }
  97.5% { transform: translate(-50%, -50%) scaleY(0); }
}

.scene-cat-clock__dial {
  position: absolute;
  z-index: 3;
  left: 62.1%;
  top: 62.1%;
  width: 34%;
  height: 32%;
  transform: translate(-50%, -50%) skewY(4deg);
  pointer-events: none;
}
.scene-cat-clock__focus-ring {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 162, 52, 0.88);
  box-shadow: 0 0 7px rgba(242, 198, 92, 0.65);
  animation: care-warn-pulse 2.2s ease-in-out infinite;
}
.scene-cat-clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 999px;
  transform-origin: 50% 100%;
}
.scene-cat-clock__hand--hour {
  width: 2px;
  height: 27%;
  margin-left: -1px;
  background: #242529;
}
.scene-cat-clock__hand--minute {
  width: 1.5px;
  height: 39%;
  margin-left: -0.75px;
  background: #2C2E33;
}
.scene-cat-clock__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  margin: -1.75px 0 0 -1.75px;
  border-radius: 50%;
  background: #CFA246;
}

/* 居中 3D Flip 翻转弹窗 */
.clock-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, calc(var(--wx-capsule-bottom, env(safe-area-inset-top, 0px)) + 10px)) 18px max(22px, calc(16px + var(--safe-bottom)));
  background: rgba(24, 22, 20, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profile-fade-in 0.24s ease-out;
}
.clock-modal-stage {
  position: relative;
  width: min(88vw, 356px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 右上斜贴虚线纸签 × 关闭钮（避让微信右上角胶囊） */
.clock-paper-close {
  position: absolute;
  right: max(4px, calc(var(--wx-capsule-right-pad, 12px) - 86px));
  top: -8px;
  z-index: 12;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px dashed rgba(132, 110, 78, 0.65);
  background: #FFFBF0;
  box-shadow: 0 5px 14px rgba(18, 14, 10, 0.28);
  color: #4E4030;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(7deg);
}
.clock-paper-close:hover {
  background: #FBF1DC;
  transform: rotate(4deg) scale(1.04);
}
.clock-paper-close:active {
  transform: rotate(7deg) scale(0.94);
}

/* 3D 透视舞台与对称 Z 轴三明治卡片（严禁在 .ip-clock-card 加 overflow:hidden 或 filter！） */
.ip-clock-scene {
  position: relative;
  width: min(76vw, 310px);
  aspect-ratio: 1 / 1;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  will-change: transform;
}
.ip-clock-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.64s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.ip-clock-card[data-flipped="true"] {
  transform: rotateY(180deg);
}

/* 微信小程序 Skyline 渲染引擎自动降级为 scaleX(1 -> 0 -> 1) 翻转 */
.ip-clock-card.is-skyline-fallback {
  transform-style: flat;
  -webkit-transform-style: flat;
  transition: transform 0.28s ease-in-out;
}
.ip-clock-card.is-skyline-fallback[data-flipped="true"] {
  transform: none;
}
.ip-clock-card.is-skyline-fallback.is-skyline-mid {
  transform: scaleX(0.02);
}
.ip-clock-card.is-skyline-fallback .ip-clock__mid {
  display: none;
}
.ip-clock-card.is-skyline-fallback .ip-clock__front {
  transform: none;
}
.ip-clock-card.is-skyline-fallback .ip-clock__back {
  transform: none;
  display: none;
}
.ip-clock-card.is-skyline-fallback[data-flipped="true"] .ip-clock__front {
  display: none;
}
.ip-clock-card.is-skyline-fallback[data-flipped="true"] .ip-clock__back {
  display: block;
}

.ip-clock__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
}
/* 对称 Z 轴三明治矩阵：正面 +4px，炭黑中框 +2/0/-2px，背面 rotateY(180deg) translateZ(+4px) */
.ip-clock__front {
  transform: translateZ(4px);
  pointer-events: auto;
}
.ip-clock__back {
  transform: rotateY(180deg) translateZ(4px);
  pointer-events: none;
}
.ip-clock-card[data-flipped="true"] .ip-clock__front {
  pointer-events: none;
}
.ip-clock-card[data-flipped="true"] .ip-clock__back {
  pointer-events: auto;
}

.ip-clock__mid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.ip-clock__mid--1 { transform: translateZ(2px); }
.ip-clock__mid--2 { transform: translateZ(0px); }
.ip-clock__mid--3 { transform: translateZ(-2px); }

.ip-clock__art {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(10, 8, 6, 0.36));
}

/* 正面圆滚大白肚皮实时表盘（对齐实测 dial: cx=48.67%, cy=61.87%, rx=20.1%, ry=17.81%） */
.ip-clock__dial {
  position: absolute;
  z-index: 4;
  left: 48.67%;
  top: 61.87%;
  width: 40.2%;
  height: 35.62%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ip-clock__focus-svg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ip-clock__dial.is-focus-active .ip-clock__focus-svg {
  opacity: 1;
}
.ip-clock__focus-track {
  fill: none;
  stroke: rgba(208, 165, 72, 0.22);
  stroke-width: 3.5;
}
.ip-clock__focus-arc {
  fill: none;
  stroke: #D9A438;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* 6点钟执勤巡逻微窗（零倒计时焦虑） */
.ip-clock__patrol-window {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(54, 46, 36, 0.08);
  border: 1px solid rgba(178, 146, 92, 0.34);
  color: #5C4B36;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 炭黑猫胡须/指挥棒造型表针与琥珀金秒针 */
.ip-clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  box-shadow: 0 1px 2px rgba(24, 20, 16, 0.24);
}
.ip-clock__hand--hour {
  width: 4px;
  height: 29%;
  margin-left: -2px;
  background: linear-gradient(180deg, #1E1F24 0%, #393B42 100%);
}
.ip-clock__hand--minute {
  width: 3px;
  height: 41%;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #25272D 0%, #44474F 100%);
}
.ip-clock__hand--second {
  width: 1.6px;
  height: 44%;
  margin-left: -0.8px;
  background: #D99B29;
}
.ip-clock__hand--second::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.6px;
  height: 10px;
  margin-left: -0.8px;
  background: #D99B29;
  border-radius: 999px;
}
.ip-clock__pin {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FCE69C, #C4912F);
  border: 1.2px solid #5E4011;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* 背面随秒针左右轻摆的黑猫尾巴钟摆 */
.ip-clock__tail-pivot {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 72%;
  width: 13.5%;
  height: 40%;
  margin-left: -6.75%;
  transform-origin: 50% 6%;
  pointer-events: none;
  transition: transform 0.78s cubic-bezier(0.37, 0, 0.63, 1);
  will-change: transform;
}
.ip-clock__tail-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(8, 8, 10, 0.38));
}

/* 背面胡桃木黄铜背板三大真交互控件（对齐实测 backplate: cx=49.8%, cy=63.32%, r=20.21%） */
.ip-clock__backplate {
  position: absolute;
  z-index: 4;
  left: 49.8%;
  top: 63.32%;
  width: 34%;
  height: 34.5%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2% 2%;
  pointer-events: auto;
}

/* 背面 ① 夜巡班次小拨盘 */
.ip-clock__shift-dial {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1.5px 3.5px;
  border-radius: 999px;
  background: rgba(34, 24, 16, 0.68);
  border: 1px solid rgba(215, 174, 96, 0.48);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}
.ip-clock__shift-btn {
  width: 19px;
  height: 17px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}
.ip-clock__shift-btn.is-active {
  opacity: 1;
  background: rgba(235, 198, 114, 0.32);
  box-shadow: 0 0 0 1px rgba(247, 223, 154, 0.72);
}

/* 背面 ② 五角警星黄铜发条旋钮 */
.ip-clock__windup-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 58px;
  height: 45px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.ip-clock__windup-btn:active,
.ip-clock__windup-btn.is-dragging {
  cursor: grabbing;
}
.ip-clock__windup-key {
  width: 38px;
  height: 38px;
  display: block;
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 5px rgba(20, 12, 4, 0.5));
  will-change: transform;
}
.ip-clock__windup-btn.is-dragging .ip-clock__windup-key {
  transition: none;
}
.ip-clock__windup-label {
  margin-top: -4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(42, 28, 16, 0.86);
  border: 1px solid rgba(226, 188, 108, 0.56);
  color: #FCE9B0;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ip-clock__windup-btn.is-active .ip-clock__windup-label {
  background: #C99124;
  color: #1F1508;
  border-color: #FFF0B8;
}

/* 背面 ③ 呼噜滴答机械拨杆 */
.ip-clock__tick-lever {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 1.5px 6px 1.5px 3.5px;
  border-radius: 999px;
  background: rgba(34, 24, 16, 0.78);
  border: 1px solid rgba(215, 174, 96, 0.52);
  color: #F4E4BE;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ip-clock__tick-knob {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8B7B66;
  border: 1px solid #E2C686;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.ip-clock__tick-lever[aria-checked="true"] {
  background: rgba(186, 134, 38, 0.90);
  border-color: #FFF0B8;
  color: #1E1408;
}
.ip-clock__tick-lever[aria-checked="true"] .ip-clock__tick-knob {
  background: #FFF3C4;
  box-shadow: 0 0 6px rgba(255, 240, 176, 0.9);
}

/* 弹窗底部实时读数与操作提示 */
.clock-modal-footer {
  margin-top: 28px; /* 为背面下垂摆动的黑猫尾巴留出优雅呼吸区 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: #FFFDF7;
}
.clock-modal-readout {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}
.clock-modal-sub {
  font-size: 12.5px;
  color: rgba(255, 249, 235, 0.86);
}
.clock-modal-focus-banner {
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 224, 0.14);
  border: 1px solid rgba(242, 212, 138, 0.36);
  color: #FCE6A6;
  font-size: 11px;
  font-weight: 500;
  max-width: 92vw;
  white-space: nowrap;
}
.clock-flip-pill {
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(224, 210, 184, 0.95);
  color: #35483C;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 5px 16px rgba(14, 12, 10, 0.28);
}
.clock-flip-pill:hover {
  background: #FFFFFF;
}



/* ==========================================================================
   PRD-0003 P3 原木书架中枢、缝线手帐日记 & P5 软装/多房间/轻小游戏样式
   ========================================================================== */

/* 1. 房间原木书架中层实时微缩展位（前 3 件藏品）与日记书签 */
.mod-books__diary-mark {
  position: absolute;
  left: 24%;
  top: 16%;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(58, 36, 16, 0.35));
  animation: books-bookmark-bob 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes books-bookmark-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

.mod-books__curio-minis {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 43%;
  height: 16%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  justify-items: center;
  gap: 2px;
  pointer-events: none;
}
.mod-books__curio-mini {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.mod-books__curio-mini::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 68%;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 28, 12, 0.42), rgba(46, 28, 12, 0));
}
.mod-books__curio-mini img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* 2. P5 家具模组软装风格调色与氛围挂件（零破图、实时生效） */
#mod-bed-blanket[data-decor-style="matcha"] img {
  filter: hue-rotate(-36deg) saturate(0.92) brightness(1.01);
}
#mod-bed-blanket[data-decor-style="apricot"] img {
  filter: sepia(0.24) saturate(1.12) brightness(1.03);
}
#mod-lamp[data-decor-style="mushroom"] img {
  filter: brightness(1.06) saturate(0.86) contrast(0.97);
}
#mod-lamp[data-decor-style="osmanthus"] img {
  filter: sepia(0.28) saturate(1.28) hue-rotate(-8deg);
}
#mod-books[data-decor-style="walnut"] img {
  filter: sepia(0.25) brightness(0.84) contrast(1.08);
}
#mod-jewelry-box[data-decor-style="ceramic"] img {
  filter: hue-rotate(48deg) saturate(0.75) brightness(1.08);
}
#mod-wall-art[data-decor-style="stringlights"]::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 12%;
  top: 12%;
  height: 14px;
  background-image: radial-gradient(circle, rgba(255, 232, 152, 0.96) 0 3px, rgba(255, 214, 102, 0.25) 5px, transparent 7px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
  pointer-events: none;
  animation: fairy-lights-twinkle 2.8s ease-in-out infinite;
}
@keyframes fairy-lights-twinkle {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
#mod-wall-art[data-decor-style="tapestry"] img {
  filter: sepia(0.2) saturate(1.15) contrast(1.04);
}
#mod-desk-set[data-decor-style="tea"] img {
  filter: hue-rotate(14deg) saturate(0.9) brightness(1.04);
}
#mod-desk-set[data-decor-style="studio"] img {
  filter: contrast(1.06) saturate(1.12);
}

/* 3. 顶部居中房间切换胶囊 + 三屏圆点 + 边缘木门牌 */
.top-room-nav {
  position: fixed;
  left: 50%;
  top: max(calc(10px + env(safe-area-inset-top, 0px)), var(--wx-capsule-top, 10px));
  transform: translateX(-50%);
  z-index: 62;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.top-room-nav .screen-dots {
  position: static;
  transform: none;
  top: auto;
  left: auto;
}
.room-switcher-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 126, 90, 0.34);
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4D3B29;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(45, 32, 18, 0.12);
  cursor: pointer;
}
.room-switcher-pill__caret {
  font-size: 10px;
  opacity: 0.7;
}
.edge-room-sign {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 56;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(145, 106, 64, 0.55);
  background: linear-gradient(180deg, #FBF2E1 0%, #EFE0C4 100%);
  color: #4D3722;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(42, 26, 10, 0.18);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.edge-room-sign--left { left: 10px; }
.edge-room-sign--right { right: max(10px, calc(var(--wx-capsule-right-pad, 12px) - 82px)); }
.edge-room-sign.is-hidden-edge {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

/* 480ms 暖光推门切房过渡遮罩 */
.room-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(circle at 50% 48%, rgba(255, 248, 232, 0.96), rgba(242, 224, 194, 0.98));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.room-transition-veil.is-active {
  opacity: 1;
}

/* P5 小厨房 / 小院子专属交互层 */
.alt-room-stage {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
}
.alt-room-props {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.alt-room-prop {
  pointer-events: auto;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 13px;
  border-radius: 16px;
  border: 1.5px solid rgba(162, 126, 84, 0.42);
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #463423;
  box-shadow: 0 8px 20px rgba(38, 25, 12, 0.16);
  cursor: pointer;
  max-width: 174px;
  text-align: left;
  transition: transform 0.18s ease;
}
.alt-room-prop:active { transform: scale(0.96); }
.alt-room-prop__icon { font-size: 20px; line-height: 1.1; }
.alt-room-prop__title { font-size: 13px; font-weight: 700; }
.alt-room-prop__sub { font-size: 10.5px; color: #7C664F; line-height: 1.3; }

.alt-room-prop--oven { left: 16px; bottom: 136px; }
.alt-room-prop--fridge { left: 16px; top: max(180px, 24vh); }
.alt-room-prop--jar { right: 86px; bottom: 136px; }

.alt-room-prop--mailbox { left: 16px; bottom: 140px; }
.alt-room-prop--chair { right: 86px; bottom: 140px; }

.yard-mailbox-visual {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
}
.yard-mailbox-flag {
  display: inline-block;
  font-size: 16px;
  transform-origin: bottom left;
  animation: mailbox-flag-wave 1.5s ease-in-out infinite;
}
@keyframes mailbox-flag-wave {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(14deg); }
}

.yard-breeze-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.yard-petal {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 7px;
  border-radius: 70% 30% 60% 40%;
  background: rgba(244, 206, 114, 0.85);
  box-shadow: 0 0 6px rgba(255, 224, 146, 0.45);
  animation: yard-petal-fall 9s linear infinite;
}
.yard-petal--1 { left: 18%; animation-delay: 0s; }
.yard-petal--2 { left: 44%; animation-delay: 2.3s; background: rgba(182, 206, 152, 0.82); }
.yard-petal--3 { left: 68%; animation-delay: 4.8s; }
.yard-petal--4 { left: 84%; animation-delay: 6.7s; background: rgba(247, 219, 154, 0.82); }
@keyframes yard-petal-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.85; }
  100% { transform: translate(-48px, 85vh) rotate(240deg); opacity: 0; }
}

/* 4. 统一四页签胶囊安全顶栏（相册 | 明信片 | 日记本 | 收藏柜） */
.eb-nav-bar--four-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: max(10px, calc(var(--wx-capsule-bottom, env(safe-area-inset-top, 0px)) + 6px));
  padding-right: max(12px, var(--wx-capsule-right-pad, 12px));
  padding-left: 12px;
  padding-bottom: 10px;
  height: auto;
  min-height: 52px;
}
.keepsake-tabs--inline {
  flex: 1;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(132, 110, 84, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.keepsake-tabs--inline .keepsake-tab {
  padding: 7px 4px;
  font-size: 12.5px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 5. P3 三层原木书架中枢弹窗 */
.bookshelf-hub-overlay,
.house-guide-overlay,
.native-minigame-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, calc(var(--wx-capsule-bottom, env(safe-area-inset-top, 0px)) + 8px)) 14px max(18px, calc(12px + var(--safe-bottom)));
  background: rgba(26, 20, 14, 0.56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.bookshelf-hub-card,
.house-guide-card,
.native-minigame-card {
  width: min(94vw, 440px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  border-radius: 22px;
  border: 2px solid #C89D6C;
  background: linear-gradient(180deg, #FFFDF7 0%, #F7EFE2 100%);
  box-shadow: 0 22px 48px rgba(24, 14, 6, 0.34);
  padding: 16px;
  color: #3E2D1E;
}
.bookshelf-hub-head,
.house-guide-head,
.native-minigame-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bookshelf-hub-head__title,
.house-guide-head__title,
.native-minigame-head__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #3B2918;
}
.bookshelf-hub-head__sub,
.house-guide-head__sub,
.native-minigame-head__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #7D664E;
}
.bookshelf-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bookshelf-tier {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #E8D5B8 0%, #DEC6A1 100%);
  border: 1px solid rgba(154, 112, 66, 0.45);
  box-shadow: inset 0 4px 10px rgba(74, 46, 18, 0.14);
}
.bookshelf-tier__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6B4D2E;
  margin-bottom: 7px;
}
.bookshelf-tier__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bookshelf-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(138, 102, 64, 0.28);
  background: #FFFBF3;
  color: #3E2C1B;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(56, 36, 16, 0.1);
  transition: transform 0.15s ease;
}
.bookshelf-slot:active { transform: scale(0.97); }
.bookshelf-slot__icon { font-size: 20px; line-height: 1.1; }
.bookshelf-slot__name { font-size: 13px; font-weight: 700; }
.bookshelf-slot__sub { font-size: 11px; color: #7C664F; }
.bookshelf-slot__curio-minis {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}
.bookshelf-slot__curio-minis img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: rgba(200, 157, 108, 0.16);
  border-radius: 7px;
  padding: 2px;
}

/* 6. P3 缝线布面手帐封面飞出动效 */
.diary-cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 265;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: max(24px, calc(var(--wx-capsule-bottom, 0px) + 12px)) 18px 24px;
  background: rgba(24, 19, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.diary-cover-book {
  position: relative;
  width: min(68vw, 248px);
  aspect-ratio: 3 / 4;
  border-radius: 10px 18px 18px 10px;
  overflow: visible;
  box-shadow: 0 24px 50px rgba(14, 9, 4, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  animation: diary-cover-fly-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
@keyframes diary-cover-fly-in {
  0% { opacity: 0; transform: translate(-28vw, 12vh) scale(0.45) rotate(-12deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
.diary-cover-book.is-opening {
  transform: perspective(900px) rotateY(-68deg) scale(1.04);
  opacity: 0.15;
}
.diary-cover-book__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  border-radius: 10px 0 0 10px;
  background: rgba(42, 34, 28, 0.22);
  border-right: 1.5px dashed rgba(255, 255, 255, 0.48);
  z-index: 3;
}
.diary-cover-book__top-cloth {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  border-radius: 10px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(90deg, #E8D8C3 0 12px, #F6EFE4 12px 24px);
  border-bottom: 2px dashed rgba(255, 252, 245, 0.72);
}
.diary-cover-book[data-pet-theme="yutu"] .diary-cover-book__top-cloth {
  background: repeating-linear-gradient(90deg, #8DA6BD 0 12px, #F3F6F9 12px 24px);
}
.diary-cover-book__bottom-cloth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  border-radius: 0 0 18px 10px;
  background: #527A7E;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 0 28px;
}
.diary-cover-book[data-pet-theme="yutu"] .diary-cover-book__bottom-cloth {
  background: #EDE5D6;
  background-image: radial-gradient(rgba(166, 152, 132, 0.24) 1px, transparent 1px);
  background-size: 8px 8px;
}
.diary-cover-book__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.94);
  border: 1.5px dashed rgba(132, 108, 82, 0.55);
  box-shadow: 0 4px 12px rgba(32, 22, 12, 0.12);
}
.diary-cover-book__crest { font-size: 28px; }
.diary-cover-book__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #3D2D1E;
}
.diary-cover-book__pet-tag {
  font-size: 12px;
  font-weight: 600;
  color: #FFFDF8;
  letter-spacing: 0.05em;
}
.diary-cover-book[data-pet-theme="yutu"] .diary-cover-book__pet-tag {
  color: #554636;
}
.diary-cover-book__clasp {
  position: absolute;
  right: -12px;
  top: 52%;
  width: 34px;
  height: 24px;
  border-radius: 6px 12px 12px 6px;
  background: #42666A;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  z-index: 4;
  transition: transform 0.18s ease;
}
.diary-cover-book[data-pet-theme="yutu"] .diary-cover-book__clasp {
  background: #7A93AA;
}
.diary-cover-book.is-opening .diary-cover-book__clasp {
  transform: translateX(10px) rotate(12deg);
}
.diary-cover-book__snap {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FCE5A2, #B98A36);
  border: 1px solid #6E4F16;
}
.diary-cover-hint {
  margin: 0;
  color: #FFF9EE;
  font-size: 13px;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 7. P3 缝线手帐内页（上下双联竖屏 / 宽屏左右对开） */
.diary-book-view {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 4px 28px;
}
.diary-welcome-note {
  margin-bottom: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #F4EFE3;
  border: 1px dashed rgba(154, 126, 86, 0.45);
  color: #63513E;
  font-size: 12px;
  line-height: 1.5;
}
.diary-empty-state {
  text-align: center;
  padding: 46px 20px;
  border-radius: 18px;
  background: #FFFDF8;
  border: 1.5px dashed rgba(162, 134, 98, 0.4);
}
.diary-empty-state__book { font-size: 40px; margin-bottom: 10px; }
.diary-empty-state__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #6F5D4A;
  line-height: 1.6;
}
.diary-spread {
  border-radius: 18px;
  background: #FFFDF8;
  border: 1.5px solid rgba(180, 152, 114, 0.45);
  box-shadow: 0 10px 26px rgba(48, 34, 18, 0.1);
  overflow: hidden;
}
.diary-page {
  padding: 15px 16px;
}
.diary-page--top {
  background: linear-gradient(180deg, #FFFDF8 0%, #FAF5EA 100%);
}
.diary-page__meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.diary-page__date {
  font-size: 12.5px;
  font-weight: 700;
  color: #544230;
}
.diary-page__day-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #EDF2E3;
  color: #4E6334;
  font-size: 11px;
  font-weight: 700;
}
.diary-polaroid-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.diary-polaroid-frame {
  position: relative;
  width: 142px;
  flex-shrink: 0;
  padding: 7px 7px 18px;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(48, 34, 18, 0.16);
  transform: rotate(-1.5deg);
}
.diary-washi-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 54px;
  height: 14px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(168, 206, 186, 0.78);
  border-left: 1px dashed rgba(255, 255, 255, 0.7);
  border-right: 1px dashed rgba(255, 255, 255, 0.7);
}
.diary-polaroid-frame__img {
  width: 100%;
  aspect-ratio: 800 / 920;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: #F4ECE0;
}
.diary-fact-tags {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.diary-fact-tags__head {
  font-size: 11px;
  font-weight: 700;
  color: #8A7358;
}
.diary-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.diary-tag-pill {
  padding: 4px 8px;
  border-radius: 8px;
  background: #F3EAD9;
  color: #4F3D2B;
  font-size: 11.5px;
  font-weight: 600;
}
.diary-archetype-chip {
  font-size: 10.5px;
  color: #8B755D;
}
.diary-spine-divider {
  height: 14px;
  background: linear-gradient(180deg, rgba(164, 134, 96, 0.18), rgba(164, 134, 96, 0.06), rgba(164, 134, 96, 0.18));
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.diary-spine-stitch {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #B89A74;
}
.diary-page--bottom {
  background-color: #FFFDF9;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(212, 138, 126, 0.16) 27px,
    rgba(212, 138, 126, 0.16) 28px
  );
}
.diary-entry__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #3A2A1B;
}
.diary-entry__salutation {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5C4733;
}
.diary-entry__body {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 28px;
  color: #3D3024;
}
.diary-entry__ps {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #7A634C;
  font-style: italic;
}
.diary-entry__footer {
  display: flex;
  justify-content: flex-end;
}
.diary-entry__signoff {
  font-size: 12.5px;
  font-weight: 700;
  color: #5A4632;
}
.diary-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.diary-nav-btn {
  padding: 9px 6px;
  border-radius: 12px;
  border: 1px solid rgba(154, 126, 88, 0.34);
  background: #FFFDF8;
  color: #4D3B29;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.diary-nav-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.diary-nav-btn--accent {
  background: #EDF2E3;
  border-color: rgba(102, 134, 72, 0.35);
  color: #3F5728;
}
.diary-index-drawer {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #FFFDF8;
  border: 1px solid rgba(164, 136, 98, 0.32);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diary-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #F7F1E6;
  color: #443322;
  font-size: 12.5px;
  cursor: pointer;
}
.diary-index-item.is-active {
  border-color: #8BA572;
  background: #EDF3E4;
  font-weight: 700;
}

.lookbook-album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lookbook-album-head__title { margin: 0; font-size: 15px; font-weight: 800; color: #3D2C1D; }
.lookbook-album-head__sub { margin: 2px 0 0; font-size: 11.5px; color: #7E6953; }

/* 8. P5 家园软装改造与多房间导览弹窗 */
.house-guide-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(144, 114, 76, 0.12);
  margin-bottom: 12px;
}
.house-guide-tab {
  padding: 8px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #6B5540;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.house-guide-tab.is-active {
  background: #FFFDF8;
  color: #3D2B1A;
  box-shadow: 0 2px 6px rgba(56, 36, 16, 0.1);
}
.house-guide-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-tour-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #FFFDF9;
  border: 1.5px solid rgba(164, 134, 96, 0.32);
}
.room-tour-card.is-active {
  border-color: #77945B;
  background: #F4F8EE;
}
.room-tour-card__thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ECE2D2;
}
.room-tour-card__body { flex: 1; min-width: 0; }
.room-tour-card__title { font-size: 14px; font-weight: 800; color: #3C2B1C; }
.room-tour-card__desc { margin: 3px 0 6px; font-size: 11.5px; color: #78624B; line-height: 1.4; }
.room-tour-card__cond { font-size: 11px; color: #8B6E4B; font-weight: 600; }
.room-tour-card__btn {
  padding: 7px 11px;
  border-radius: 10px;
  border: none;
  background: #6E8B57;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.room-tour-card__btn--locked {
  background: #E6DCCB;
  color: #786550;
}
.decor-slot-group {
  padding: 10px;
  border-radius: 14px;
  background: #FFFDF8;
  border: 1px solid rgba(164, 134, 96, 0.26);
}
.decor-slot-group__title {
  font-size: 12.5px;
  font-weight: 800;
  color: #4D3A27;
  margin-bottom: 8px;
}
.decor-items-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.decor-item-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border-radius: 11px;
  border: 1.5px solid rgba(160, 130, 92, 0.28);
  background: #FAF5EB;
  text-align: left;
  cursor: pointer;
}
.decor-item-card.is-equipped {
  border-color: #6E8B57;
  background: #EDF3E4;
}
.decor-item-card__swatch {
  width: 24px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.decor-item-card__name { font-size: 12px; font-weight: 700; color: #3D2B1B; }
.decor-item-card__meta { font-size: 10.5px; color: #7C664E; font-weight: 600; }

/* 9. P5 内置轻小游戏 UI（《听你说》《寻宝翻翻乐》《暖炉烘焙拍》《小院牧歌》） */
.native-minigame-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mg-question-card {
  padding: 14px;
  border-radius: 14px;
  background: #FFFDF9;
  border: 1px solid rgba(162, 132, 94, 0.3);
}
.mg-question-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EDF2E3;
  color: #4E6334;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mg-question-text { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; color: #3C2B1C; line-height: 1.5; }
.mg-option-list { display: flex; flex-direction: column; gap: 8px; }
.mg-option-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(154, 126, 90, 0.34);
  background: #FAF4E8;
  color: #433120;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mg-option-btn:hover { background: #F0E6D3; }
.mg-pet-reply {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F2F6EB;
  color: #445931;
  font-size: 12.5px;
  line-height: 1.5;
}

.mg-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mg-memory-card {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px solid rgba(156, 120, 76, 0.42);
  background: linear-gradient(180deg, #E8D5B7 0%, #D7BC92 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  font-size: 20px;
}
.mg-memory-card.is-open,
.mg-memory-card.is-matched {
  background: #FFFDF8;
  border-color: #77945B;
}
.mg-memory-card img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.mg-bakery-oven {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FCEBD0 0%, #F4D8AE 100%);
  border: 1.5px solid rgba(176, 126, 68, 0.45);
  text-align: center;
}
.mg-bakery-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: #E8D6BC;
  margin: 14px 0;
  overflow: hidden;
}
.mg-bakery-sweet {
  position: absolute;
  left: 38%;
  width: 24%;
  top: 0;
  bottom: 0;
  background: rgba(110, 155, 74, 0.42);
  border-left: 2px solid #5F8640;
  border-right: 2px solid #5F8640;
}
.mg-bakery-cursor {
  position: absolute;
  top: 2px;
  width: 14px;
  height: 18px;
  border-radius: 999px;
  background: #C96B3B;
  transform: translateX(-50%);
}
.mg-meadow-field {
  position: relative;
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(180deg, #DCEBC9 0%, #C5DDA8 100%);
  border: 1.5px solid rgba(114, 146, 86, 0.4);
  overflow: hidden;
}
.mg-meadow-target {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 250, 232, 0.92);
  box-shadow: 0 4px 12px rgba(64, 88, 36, 0.22);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-result-box {
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: #FFFDF8;
  border: 1.5px dashed rgba(142, 114, 78, 0.45);
}
.mg-result-box__big { font-size: 22px; font-weight: 800; color: #4A6630; margin: 4px 0 8px; }
.mg-result-box__sub { font-size: 12.5px; color: #6E5943; margin: 0 0 12px; line-height: 1.5; }

/* 统一收纳在百宝箱「房间与场景背景」中的 12 套场景背景网格 */
.house-bgs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.house-bg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px;
  border-radius: 14px;
  background: #FFFDF8;
  border: 1.5px solid rgba(164, 134, 98, 0.24);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.house-bg-card:active {
  transform: scale(0.97);
}
.house-bg-card.is-selected {
  border-color: #2E4B39;
  background: #F3F8F2;
  box-shadow: 0 4px 12px rgba(46, 75, 57, 0.14);
}
.house-bg-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #EFE7D8;
}
.house-bg-card__name {
  font-size: 11.5px;
  font-weight: 600;
  color: #4A3726;
  line-height: 1.25;
  text-align: center;
}
.house-bg-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1B3A26;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   「伙伴档案」极简大气暖奶油重设计（对齐起居室与百宝箱现行视觉）
   ========================================================================== */
#profile-modal-overlay .profile-journal-card {
  width: min(92vw, 410px);
  max-height: min(86vh, 660px);
  border-radius: 26px;
  background: #FCF9F2;
  background-image: none;
  border: 1.5px solid rgba(164, 134, 98, 0.22);
  box-shadow: 0 22px 54px rgba(34, 24, 14, 0.24), 0 2px 8px rgba(74, 52, 30, 0.08);
  padding: 0;
  overflow: hidden;
}
#profile-modal-overlay .profile-journal-card__inner {
  padding: 0;
  gap: 0;
}
#profile-modal-overlay .profile-journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: #FCF9F2;
  border-bottom: 1px solid rgba(164, 134, 98, 0.14);
}
#profile-modal-overlay .profile-journal-header__title {
  font-size: 17px;
  font-weight: 700;
  color: #36281B;
  letter-spacing: 0.02em;
  margin: 0;
}
#profile-modal-overlay .profile-pet-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #EFE7D8;
  border: 1px solid rgba(164, 134, 98, 0.16);
  gap: 2px;
}
#profile-modal-overlay .profile-pet-seg__btn {
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B5742;
  background: transparent;
  border: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
#profile-modal-overlay .profile-pet-seg__btn.is-active {
  background: #24402E;
  color: #FFFDF8;
  box-shadow: 0 2px 8px rgba(36, 64, 46, 0.22);
}
#profile-modal-overlay .profile-journal-scroll {
  padding: 20px 20px 18px;
  gap: 18px;
  display: flex;
  flex-direction: column;
}
#profile-modal-overlay .profile-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
#profile-modal-overlay .profile-pet {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#profile-modal-overlay .profile-pet__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
#profile-modal-overlay .profile-pet__thumb-wrap {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 38%, #FFFDF8 0%, #F2E9D9 100%);
  border: 1px solid rgba(164, 134, 98, 0.18);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
#profile-modal-overlay .profile-pet__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#profile-modal-overlay .profile-pet__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
#profile-modal-overlay .profile-pet__name {
  font-size: 20px;
  font-weight: 800;
  color: #2F2318;
  letter-spacing: 0.01em;
}
#profile-modal-overlay .profile-pet__meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#profile-modal-overlay .profile-pet__outfit-tag,
#profile-modal-overlay .profile-pet__mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: #F2EBDD;
  color: #5C4936;
  border: none;
  margin: 0;
}
#profile-modal-overlay .profile-pet__mood-quote {
  font-size: 12.5px;
  line-height: 1.5;
  color: #77634E;
  margin: 2px 0 0;
}

/* 单行通栏双指标条（去废话小字、零折行） */
#profile-modal-overlay .profile-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: #F4EDE0;
  border: 1px solid rgba(164, 134, 98, 0.14);
  gap: 12px;
}
#profile-modal-overlay .profile-stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
}
#profile-modal-overlay .profile-stats-divider {
  width: 1px;
  height: 22px;
  background: rgba(164, 134, 98, 0.24);
  flex: 0 0 1px;
}
#profile-modal-overlay .profile-stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #78644F;
  white-space: nowrap;
}
#profile-modal-overlay .profile-stat-card__val {
  font-size: 15px;
  font-weight: 800;
  color: #2E4B39;
  white-space: nowrap;
}

/* 仅保留饱食度与清洁度两条纤细进度条 */
#profile-modal-overlay .profile-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 2px 2px 0;
}
#profile-modal-overlay .profile-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 38px;
  align-items: center;
  gap: 12px;
}
#profile-modal-overlay .profile-bar-row__label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5C4936;
  white-space: nowrap;
}
#profile-modal-overlay .profile-bar-row__track {
  height: 8px;
  border-radius: 999px;
  background: #ECE4D4;
  overflow: hidden;
}
#profile-modal-overlay .profile-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6E8F58 0%, #4E7241 100%);
}
#profile-modal-overlay .profile-bar-row__val {
  font-size: 12.5px;
  font-weight: 700;
  color: #4A3726;
  text-align: right;
  white-space: nowrap;
}

/* 底部极简账号与存档尾注 */
#profile-modal-overlay .profile-account {
  padding-top: 16px;
  border-top: 1px solid rgba(164, 134, 98, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#profile-modal-overlay .profile-account__top {
  display: flex;
  align-items: center;
  gap: 11px;
}
#profile-modal-overlay .profile-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  font-size: 16px;
  background: #E2ECD9;
  color: #2E4B39;
}
#profile-modal-overlay .profile-account__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#profile-modal-overlay .profile-account__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
#profile-modal-overlay .profile-account__nickname {
  font-size: 13.5px;
  font-weight: 700;
  color: #3D2E20;
}
#profile-modal-overlay .profile-sync-badge {
  margin-left: auto;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EAF1E4;
  color: #3E603B;
}
#profile-modal-overlay .profile-account__id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: #826E58;
}
#profile-modal-overlay .profile-account__phone-inline {
  margin-left: auto;
}
#profile-modal-overlay .profile-copy-pill,
#profile-modal-overlay .profile-phone-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #EFE7D8;
  color: #564331;
  border: none;
}
#profile-modal-overlay .profile-bio-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #F6F0E4;
  border: none;
}
#profile-modal-overlay .profile-bio-box__text {
  font-size: 12px;
  color: #77634E;
}


.settings-overlay[hidden] {
  display: none !important;
}

/* ==========================================================================
   首次进入一次性互动小教程（说话 → 跳跃 → 桌面散步）
   ========================================================================== */
.pet-tutorial-beacon {
  position: absolute;
  z-index: 9;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1), top 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.pet-tutorial-beacon[hidden] {
  display: none;
}
.pet-tutorial-beacon__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pet-tutorial-beacon__ring--outer {
  width: 66px;
  height: 66px;
  border: 2.5px solid rgba(255, 246, 214, 0.94);
  box-shadow: 0 0 18px rgba(244, 198, 96, 0.55), inset 0 0 10px rgba(255, 245, 210, 0.32);
  animation: petTutorialPulse 1.45s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.pet-tutorial-beacon__ring--inner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(157, 182, 91, 0.85);
  background: rgba(255, 251, 240, 0.16);
  animation: petTutorialBreath 1.45s ease-in-out infinite;
}
.pet-tutorial-beacon__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #FFFBF0;
  border: 2.5px solid #9DB65B;
  box-shadow: 0 2px 8px rgba(34, 24, 14, 0.28);
}
.pet-tutorial-beacon__pill {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(252, 248, 239, 0.96);
  border: 1.5px solid rgba(164, 134, 98, 0.36);
  color: #002900;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(34, 24, 14, 0.22);
  animation: petTutorialFloat 1.5s ease-in-out infinite;
}
.pet-tutorial-beacon.is-step-done .pet-tutorial-beacon__ring--outer {
  border-color: rgba(157, 182, 91, 0.95);
  box-shadow: 0 0 20px rgba(157, 182, 91, 0.65);
}
.pet-tutorial-beacon.is-step-done .pet-tutorial-beacon__pill {
  background: #F5F8ED;
  border-color: rgba(157, 182, 91, 0.65);
  color: #2E4B18;
}

@keyframes petTutorialPulse {
  0% { transform: translate(-50%, -50%) scale(0.72); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1.52); opacity: 0; }
}
@keyframes petTutorialBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
@keyframes petTutorialFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

.pet-tutorial-card {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 8px);
  transform: translate3d(-50%, 0, 0);
  width: min(392px, calc(100vw - 156px));
  padding: 13px 16px 14px;
  border-radius: 18px;
  background: rgba(252, 248, 239, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(164, 134, 98, 0.30);
  box-shadow: 0 10px 28px rgba(38, 26, 14, 0.18), 0 2px 6px rgba(0, 41, 0, 0.06);
  color: #1A1A1A;
  transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.22s ease;
}
.pet-tutorial-card[hidden] {
  display: none;
}
.pet-tutorial-card.is-step-done {
  border-color: rgba(157, 182, 91, 0.72);
  background: rgba(247, 251, 240, 0.97);
}
.pet-tutorial-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pet-tutorial-card__progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pet-tutorial-card__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pet-tutorial-card__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(138, 114, 86, 0.28);
  transition: width 0.22s ease, background-color 0.22s ease;
}
.pet-tutorial-card__dot.is-active {
  width: 18px;
  background: #9DB65B;
}
.pet-tutorial-card__dot.is-done {
  background: #54632C;
}
.pet-tutorial-card__badge {
  font-size: 11px;
  font-weight: 600;
  color: #54632C;
  background: #F5F8ED;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(157, 182, 91, 0.35);
}
.pet-tutorial-card__skip {
  border: 0;
  background: transparent;
  color: #8C8C88;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.pet-tutorial-card__skip:hover {
  color: #002900;
  background: rgba(0, 41, 0, 0.05);
}
.pet-tutorial-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pet-tutorial-card__copy {
  min-width: 0;
  flex: 1;
}
.pet-tutorial-card__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #002900;
  line-height: 1.35;
}
.pet-tutorial-card__desc {
  margin: 3px 0 0;
  font-size: 12px;
  color: #5C5C5C;
  line-height: 1.45;
}
.pet-tutorial-card__next {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 41, 0, 0.22);
  background: #002900;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, opacity 0.16s ease, background-color 0.16s ease;
}
.pet-tutorial-card__next:active {
  transform: scale(0.97);
  opacity: 0.9;
}
.pet-tutorial-card.is-step-done .pet-tutorial-card__next {
  background: #9DB65B;
  border-color: #9DB65B;
  color: #002900;
}

@media (max-width: 600px) {
  .pet-tutorial-card {
    width: calc(100vw - 28px);
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
    padding: 12px 14px 13px;
  }
  .pet-tutorial-card__title {
    font-size: 13.5px;
  }
  .pet-tutorial-card__desc {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-tutorial-beacon__ring--outer,
  .pet-tutorial-beacon__ring--inner,
  .pet-tutorial-beacon__pill {
    animation: none;
  }
}

/* 室内大窗户轻提示出门热区 + 推镜进入室外 3D 牧场转场 */
.module-hotspot--window {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
}

.window-outdoor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(252, 248, 239, 0.74);
  border: 1px solid rgba(164, 134, 98, 0.28);
  color: #3A3128;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(44, 34, 24, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 200ms ease, background-color 180ms ease;
}

.module-hotspot--window:hover .window-outdoor-pill,
.module-hotspot--window:focus-visible .window-outdoor-pill {
  opacity: 1;
  background: rgba(252, 248, 239, 0.96);
  transform: translateY(-2px);
}

.page[data-period="night"] .window-outdoor-pill {
  background: rgba(34, 46, 62, 0.76);
  border-color: rgba(255, 244, 214, 0.28);
  color: #F7EFE0;
}

.page.is-window-push .scene-pano {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
  transform-origin: 76% 24%;
  transform: scale(1.12);
  opacity: 0.85;
}
